This task will help to deal with a scenario when we need to switch appenders (such as "console" in dev mode, "file" - in prod mode), but would want to define a common log format. The idea is that the default log format can be defined at the top level of the config and inherited by all appenders (with the ability to redefine) :
Note that not all appenders support logFormat (ConsoleAppender and FileAppender do, but say SentryAppender does not). Still the concept seems to be common enough to make sense at the top level.
This task will help to deal with a scenario when we need to switch appenders (such as "console" in dev mode, "file" - in prod mode), but would want to define a common log format. The idea is that the default log format can be defined at the top level of the config and inherited by all appenders (with the ability to redefine) :
Note that not all appenders support
logFormat
(ConsoleAppender
andFileAppender
do, but saySentryAppender
does not). Still the concept seems to be common enough to make sense at the top level.