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 want to create a custom formatter for development that drops the time and process information ( as it's not really that useful in development and makes the log line much longer ).
I simply did this ...
class DevelopmentSemanticLoggerFormatter < SemanticLogger::Formatters::Color
def call( log, logger )
self.log = log
self.logger = logger
[ level, tags, named_tags, duration, name, message, payload, exception].compact.join( " " )
end
end
While this does work it seems to drop some of the coloring I was previously seeing such as log level colors and name colors. How might I fix this?
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
-
I want to create a custom formatter for development that drops the time and process information ( as it's not really that useful in development and makes the log line much longer ).
I simply did this ...
While this does work it seems to drop some of the coloring I was previously seeing such as log level colors and name colors. How might I fix this?
Beta Was this translation helpful? Give feedback.
All reactions