logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemri (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-429) Class name and file number not filled with Async appender
Date Wed, 16 Oct 2013 09:48:42 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hemri updated LOG4J2-429:
-------------------------

    Description: 
Hi everyone,

I found an annoying issue with async appender, with this configuration:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
	<Appenders>
		<Console name="CONSOLE" target="SYSTEM_OUT">
			<PatternLayout pattern="%d %p %c{1.} [%t] (%F: %L) %m%n" />
		</Console>
		<Async name="ASYNC">
			<AppenderRef ref="CONSOLE" />
		</Async>
	</Appenders>
	<Loggers>
		<Root level="debug">
			<AppenderRef ref="ASYNC" />
		</Root>
	</Loggers>
</Configuration>

I got this log:
2013-10-16 11:43:19,033 WARN Foo [main] (: ) Debug message

And without async:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
	<Appenders>
		<Console name="CONSOLE" target="SYSTEM_OUT">
			<PatternLayout pattern="%d %p %c{1.} [%t] (%F:%L) %m%n" />
		</Console>
	</Appenders>
	<Loggers>
		<Root level="debug">
			<AppenderRef ref="CONSOLE" />
		</Root>
	</Loggers>
</Configuration>

I got this log:
2013-10-16 11:44:16,599 WARN Toto [main] (Toto.java:12) toto


Is it normal that class name and line number are not filled with async appender?

Thanks

  was:
Hi everyone,

I found an annoying issue with async appender, with this configuration:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
	<Appenders>
		<Console name="CONSOLE" target="SYSTEM_OUT">
			<PatternLayout pattern="%d %p %c{1.} [%t] (%F:%L) %m%n" />
		</Console>
		<Async name="ASYNC">
			<AppenderRef ref="CONSOLE" />
		</Async>
	</Appenders>
	<Loggers>
		<Root level="debug">
			<AppenderRef ref="ASYNC" />
		</Root>
	</Loggers>
</Configuration>

I got this log:
2013-10-16 11:43:19,033 WARN Foo [main] (:) Debug message

And without async:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
	<Appenders>
		<Console name="CONSOLE" target="SYSTEM_OUT">
			<PatternLayout pattern="%d %p %c{1.} [%t] (%F:%L) %m%n" />
		</Console>
	</Appenders>
	<Loggers>
		<Root level="debug">
			<AppenderRef ref="CONSOLE" />
		</Root>
	</Loggers>
</Configuration>

I got this log:
2013-10-16 11:44:16,599 WARN Toto [main] (Toto.java:12) toto


Is it normal that class name and line number are not filled with async appender?

Thanks


> Class name and file number not filled with Async appender
> ---------------------------------------------------------
>
>                 Key: LOG4J2-429
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-429
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta9
>            Reporter: Hemri
>
> Hi everyone,
> I found an annoying issue with async appender, with this configuration:
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration>
> 	<Appenders>
> 		<Console name="CONSOLE" target="SYSTEM_OUT">
> 			<PatternLayout pattern="%d %p %c{1.} [%t] (%F: %L) %m%n" />
> 		</Console>
> 		<Async name="ASYNC">
> 			<AppenderRef ref="CONSOLE" />
> 		</Async>
> 	</Appenders>
> 	<Loggers>
> 		<Root level="debug">
> 			<AppenderRef ref="ASYNC" />
> 		</Root>
> 	</Loggers>
> </Configuration>
> I got this log:
> 2013-10-16 11:43:19,033 WARN Foo [main] (: ) Debug message
> And without async:
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration>
> 	<Appenders>
> 		<Console name="CONSOLE" target="SYSTEM_OUT">
> 			<PatternLayout pattern="%d %p %c{1.} [%t] (%F:%L) %m%n" />
> 		</Console>
> 	</Appenders>
> 	<Loggers>
> 		<Root level="debug">
> 			<AppenderRef ref="CONSOLE" />
> 		</Root>
> 	</Loggers>
> </Configuration>
> I got this log:
> 2013-10-16 11:44:16,599 WARN Toto [main] (Toto.java:12) toto
> Is it normal that class name and line number are not filled with async appender?
> Thanks



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message