-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the Appender interface to support suspend functions for asynchronous operations. Introduced CoroutineScope for handling concurrency in various components, ensuring non-blocking behavior. Adjusted all derived classes and usage contexts accordingly.
- Loading branch information
1 parent
e2f8f4e
commit 50d90e7
Showing
10 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...mmonMain/kotlin/io/github/smyrgeorge/log4k/impl/appenders/SimpleConsoleTracingAppender.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package io.github.smyrgeorge.log4k.impl.appenders | ||
|
||
import io.github.smyrgeorge.log4k.Appender | ||
import io.github.smyrgeorge.log4k.LoggingEvent | ||
import io.github.smyrgeorge.log4k.TracingEvent | ||
import io.github.smyrgeorge.log4k.impl.extensions.format | ||
import io.github.smyrgeorge.log4k.impl.extensions.toName | ||
|
||
class SimpleConsoleTracingAppender : Appender<TracingEvent> { | ||
override val name: String = this::class.toName() | ||
override fun append(event: TracingEvent) { | ||
override suspend fun append(event: TracingEvent) { | ||
println(event.toString()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters