-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loggerName to the Appender interface
On Darwin platforms using os_log, a separate logger can be created for each differently named logger. The Appender, which directs the text of the log message, needs to know which logger to direct it to.
- Loading branch information
Showing
4 changed files
with
22 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package mu | ||
|
||
public interface Appender { | ||
public fun trace(message: Any?) | ||
public fun debug(message: Any?) | ||
public fun info(message: Any?) | ||
public fun warn(message: Any?) | ||
public fun error(message: Any?) | ||
public fun trace(loggerName: String, message: String) | ||
public fun debug(loggerName: String, message: String) | ||
public fun info(loggerName: String, message: String) | ||
public fun warn(loggerName: String, message: String) | ||
public fun error(loggerName: String, message: String) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package mu | ||
|
||
public interface Formatter { | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, msg: () -> Any?): Any? | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, t: Throwable?, msg: () -> Any?): Any? | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, marker: Marker?, msg: () -> Any?): Any? | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, msg: () -> Any?): String | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, t: Throwable?, msg: () -> Any?): String | ||
public fun formatMessage(level: KotlinLoggingLevel, loggerName: String, marker: Marker?, msg: () -> Any?): String | ||
public fun formatMessage( | ||
level: KotlinLoggingLevel, | ||
loggerName: String, | ||
marker: Marker?, | ||
t: Throwable?, | ||
msg: () -> Any? | ||
): Any? | ||
): String | ||
} |
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