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
is there a simple way to override the coloring/style for single param key=value from the caller code? for example by passing some kind of object with style+text and it will be logged to file/other log handlers by by using the text only and console handler will use the style to create the styled string.
i couldn't find a way to do that easily
i could create custom renderer to do that.
or to write custom formatter and to pass my own list of columns to allow modification of the formatting.
both are fine i just ask if there is a simpler way to do so. i just want to override the default formatter __repr
to use regular __repr if colors are disabled or my own __repr if they are enabled
The text was updated successfully, but these errors were encountered:
OrHayat
changed the title
a better way to override single param style in console renderer
is there a better way to override single param style in console renderer -from user code
Sep 25, 2024
is there a simple way to override the coloring/style for single param key=value from the caller code? for example by passing some kind of object with style+text and it will be logged to file/other log handlers by by using the text only and console handler will use the style to create the styled string.
i couldn't find a way to do that easily
i could create custom renderer to do that.
or to write custom formatter and to pass my own list of columns to allow modification of the formatting.
both are fine i just ask if there is a simpler way to do so. i just want to override the default formatter __repr
to use regular __repr if colors are disabled or my own __repr if they are enabled
The text was updated successfully, but these errors were encountered: