-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose formatter to public or protected in CommonWriter #360
Comments
It's possible to customize Message Formatting. Did you check out this docs? https://kermit.touchlab.co/docs/configuration/MESSAGE_FORMATTING |
Yes, I know the current way to customize log writer. And I also successfully implement my own writer. |
Sorry for the long delay. Not sure the original poster cares at this point, but I'm cleaning up the issues list. Lots of them perpetually stay in the "we'll look at this when we get some extra time", but that never happens on its own. The idea of I'm fairly reluctant to expand the API too much, but this might be worth it. I'd just want to think through it a bit. |
Yes, it is all about api design. Originally, I would write something like
|
Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/CommonWriter.kt
Line 19 in 8e20fa5
At now CommonWriter's formatter is private, which make it impossible to use custom formatter when inheriting writer. See below
The text was updated successfully, but these errors were encountered: