anko记录器库在调试版本或签名版本中记录消息

我正在尝试使用anko公共库在logcat上记录调试消息。 我想在调试版本中显示日志消息而不是在签名版本。 我知道我可以使用Proguard删除签名版本中的日志记录。

我想知道如果anko库本身只有在调试版本的情况下记录消息? 或者它在签名的版本呢?

这是anko库的Logger工具https://github.com/Kotlin/anko/blob/d5a526512b48c5cd2e3b8f6ff14b153c2337aa22/anko/library/static/commons/src/Logging.kt

 /** * Send a log message with the [Log.DEBUG] severity. * Note that the log message will not be written if the current log level is above [Log.DEBUG]. * The default log level is [Log.INFO]. * * @param message the function that returns message text to log. * `null` value will be represent as "null", for any other value the [Any.toString] will be invoked. * * @see [Log.d]. */ inline fun AnkoLogger.debug(message: () -> Any?) { val tag = loggerTag if (Log.isLoggable(tag, Log.DEBUG)) { Log.d(tag, message()?.toString() ?: "null") } } 

我需要使用proguard删除日志记录吗? 或者使用一些BuildConfig.ktanko库管理自己?