S
schmen
Is there a way to provide a log4j configuration that provides a
stipulation that a given appender executes ONLY at a given priority
level. For example, I have an SMTP appender that I would like to
execute only at the level of ERROR; and not at any of the lower
levels.
Currently, I have a decorator class to swap the appender in and out
depending on the level being invoked. Further, I plan on migrating
to the commons-logger project, that is why I would like for a solution
to be on the configuration side of things.
Any ideas would be appreciated.
stipulation that a given appender executes ONLY at a given priority
level. For example, I have an SMTP appender that I would like to
execute only at the level of ERROR; and not at any of the lower
levels.
Currently, I have a decorator class to swap the appender in and out
depending on the level being invoked. Further, I plan on migrating
to the commons-logger project, that is why I would like for a solution
to be on the configuration side of things.
Any ideas would be appreciated.