Skip to content

Add opportunity to setup debug antilog levels#102

Open
InsanusMokrassar wants to merge 1 commit intoAAkira:masterfrom
InsanusMokrassar:antilog
Open

Add opportunity to setup debug antilog levels#102
InsanusMokrassar wants to merge 1 commit intoAAkira:masterfrom
InsanusMokrassar:antilog

Conversation

@InsanusMokrassar
Copy link
Copy Markdown

No description provided.

@AAkira
Copy link
Copy Markdown
Owner

AAkira commented May 17, 2022

Napier is originally designed to be used with your own customization of AntiLog.
However, Napier provided a DebugAntilog for easy debugging on each platform.
Therefore, we basically want you to customize Antilog on your own.
However, we understand your desire to use DebugAntilog.

How about inheriting DebugAntilog like this?

  • Added the open modifier on DebugAntilog
actual open class DebugAntilog actual constructor(private val defaultTag: String) : Antilog() {
}
  • New
class MyDebugAntilog(defaultTag: String) : DebugAntilog(defaultTag) {
    override fun isEnable(priority: LogLevel, tag: String?): Boolean = priority > LogLevel.INFO
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants