You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Sam.Mesh" <Sa...@gmail.com> on 2022/01/11 21:27:01 UTC
Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold
Hello,
It looks like Log4j1ConfigurationParser doesn't consider
log4j.appender.ConsoleLogger.Threshold to provide logging level for the
console.
Probably, this could be achieved like described at
https://logging.apache.org/log4j/log4j-2.0/faq.html#config_sep_appender_level
?
Thanks,
Sam
Re: Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold
Posted by Sam Mesh <sa...@gmail.com>.
I use just Log4j1ConfigurationParser.java from 2.17.1 bridge, don't use
other files.
Source log4j1 properties:
log4j.rootLogger=DEBUG,ConsoleLogger,FileLogger,GenesysAppender
log4j.appender.ConsoleLogger.Threshold=INFO
Generated by Log4j1ConfigurationParser log4j2 xml:
<Configuration name="Log4j1">
<Appenders>
<Console name="ConsoleLogger" target="SYSTEM_OUT">
</Console>
</Appenders>
<Loggers>
<Root level="DEBUG">
<AppenderRef ref="ConsoleLogger"/>
</Root>
</Loggers>
</Configuration>
On Tue, Jan 11, 2022 at 1:27 PM Sam.Mesh <Sa...@gmail.com> wrote:
> Hello,
>
> It looks like Log4j1ConfigurationParser doesn't consider
> log4j.appender.ConsoleLogger.Threshold to provide logging level for the
> console.
> Probably, this could be achieved like described at
> https://logging.apache.org/log4j/log4j-2.0/faq.html#config_sep_appender_level
> ?
>
> Thanks,
> Sam
>
>
Re: Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold
Posted by Gary Gregory <ga...@gmail.com>.
Hello Sam,
Do you have an example configuration that works in log4j 1 but not with the
log4j 2 bridge for 1.2?
You should also make sure you test with 2.17.1 and try 2.17.2-snapshot
which contains important fixes to the bridge.
Gary
On Tue, Jan 11, 2022, 16:29 Sam.Mesh <Sa...@gmail.com> wrote:
> Hello,
>
> It looks like Log4j1ConfigurationParser doesn't consider
> log4j.appender.ConsoleLogger.Threshold to provide logging level for the
> console.
> Probably, this could be achieved like described at
>
> https://logging.apache.org/log4j/log4j-2.0/faq.html#config_sep_appender_level
> ?
>
> Thanks,
> Sam
>