Skip to content

Conversation

InsanusMokrassar
Copy link

No description provided.

@AAkira
Copy link
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