You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In linking up SLF4J in android projects, it's useful to create custom loggers that integrate with Timber. To do so, we've implemented a custom org.slf4j.impl.StaticLoggerBinder : LoggerFactoryBinder { // } and a class TimberSlf4JAdapter(loggerName: String, private val logLevelSettings: LogLevelSettings) : MarkerIgnoringBase() { // } to actually get the logs passed through into Timber.
The issue is that recent versions of SLF4J have marked both LoggerFactoryBinder & MarkerIgnoringBase deprecated - without giving any indication of what their replacement is. I've searched the repo, logback (in case they had a solution), and the docs - but I came up with nothing.
Would anyone be able to point me to documentation explaining how to address these deprecations?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In linking up SLF4J in android projects, it's useful to create custom loggers that integrate with Timber. To do so, we've implemented a custom
org.slf4j.impl.StaticLoggerBinder : LoggerFactoryBinder { // }
and aclass TimberSlf4JAdapter(loggerName: String, private val logLevelSettings: LogLevelSettings) : MarkerIgnoringBase() { // }
to actually get the logs passed through into Timber.The issue is that recent versions of SLF4J have marked both
LoggerFactoryBinder
&MarkerIgnoringBase
deprecated - without giving any indication of what their replacement is. I've searched the repo, logback (in case they had a solution), and the docs - but I came up with nothing.Would anyone be able to point me to documentation explaining how to address these deprecations?
Beta Was this translation helpful? Give feedback.
All reactions