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
I would like to log error/info with a different FormatStrategy. Info should be logged with only the message body and errors with body and stacktrace.
i.e. for info messages:
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ This is a sample info log content -> 123
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────
and error messages like so:
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Thread: main
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
│ NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
│ AALogTest.logError (AALogTest.kt:39)
│ AALog.e (AALog.kt:19)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ This is a sample error 123123:4321 ## @@
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Could LoggerPrinter class be made public so that one can inherit from it?
When LoggerPrinter is public the following implementation would be possible:
I would like to log error/info with a different FormatStrategy. Info should be logged with only the message body and errors with body and stacktrace.
i.e. for info messages:
and error messages like so:
Could
LoggerPrinter
class be made public so that one can inherit from it?When LoggerPrinter is public the following implementation would be possible:
The text was updated successfully, but these errors were encountered: