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

Remko Popma updated LOG4J2-537:
-------------------------------

    Description: 
helloworld program does not end. 




  was:

helloworld program does not end. 




    Environment: 
program does not end.

configuration
{code}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="error">
  <Appenders>
    <Console name="Console" target="SYSTEM_OUT">
      <ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
      <!-- Flow tracing is most useful with a pattern that shows location.
           Below pattern outputs class, line number and method name. -->
      <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
%msg%xEx%n"/>
    </Console>
    <File name="log" fileName="test.log" append="false">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
%msg%xEx%n"/>
    </File>
  </Appenders>
  <Loggers>
    <Root level="trace">
      <AppenderRef ref="log"/>
    </Root>
  </Loggers>
</Configuration>
{code}
source
[code}
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
 
public class HelloWorld {
    private static Logger logger = LogManager.getLogger();
    public static void main(String[] args) {
        logger.info("Hello, World!");
    }
}
{code}

libs
disruptor-3.2.0.jar
log4j-api-beta9.jar
log4j-core-beta9.jar
jdk1.6.0_45 64bit

delete file appender and change [AppenderRef ref="Console"] in [Root] work fine.




  was:
program does not end.

confiugration

1.<?xml version="1.0" encoding="UTF-8"?>
2.<Configuration status="error">
3.  <Appenders>
4.    <Console name="Console" target="SYSTEM_OUT">
5.      <ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
6.      <!-- Flow tracing is most useful with a pattern that shows location.
7.           Below pattern outputs class, line number and method name. -->
8.      <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
%msg%xEx%n"/>
9.    </Console>
10.    <File name="log" fileName="test.log" append="false">
11.      <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
%msg%xEx%n"/>
12.    </File>
13.  </Appenders>
14.  <Loggers>
15.    <Root level="trace">
16.      <AppenderRef ref="log"/>
17.    </Root>
18.  </Loggers>
19.</Configuration>

source
1.import org.apache.logging.log4j.LogManager;
2.import org.apache.logging.log4j.Logger;
3. 
4.public class HelloWorld {
5.    private static Logger logger = LogManager.getLogger();
6.    public static void main(String[] args) {
7.        logger.info("Hello, World!");
8.    }
9.}


libs
disruptor-3.2.0.jar
log4j-api-beta9.jar
log4j-core-beta9.jar
jdk1.6.0_45 64bit

delete file appender and change [AppenderRef ref="Console"] in [Root] work fine.




       Assignee: Remko Popma

Since you mention {{disruptor-3.2.0.jar}}, I assume that your are setting 
system property 
{{-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector}}
 to make all loggers asynchronous, is that correct?

> application does not end.
> -------------------------
>
>                 Key: LOG4J2-537
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-537
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-beta9
>         Environment: program does not end.
> configuration
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="error">
>   <Appenders>
>     <Console name="Console" target="SYSTEM_OUT">
>       <ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
>       <!-- Flow tracing is most useful with a pattern that shows location.
>            Below pattern outputs class, line number and method name. -->
>       <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
> %msg%xEx%n"/>
>     </Console>
>     <File name="log" fileName="test.log" append="false">
>       <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - 
> %msg%xEx%n"/>
>     </File>
>   </Appenders>
>   <Loggers>
>     <Root level="trace">
>       <AppenderRef ref="log"/>
>     </Root>
>   </Loggers>
> </Configuration>
> {code}
> source
> [code}
> import org.apache.logging.log4j.LogManager;
> import org.apache.logging.log4j.Logger;
>  
> public class HelloWorld {
>     private static Logger logger = LogManager.getLogger();
>     public static void main(String[] args) {
>         logger.info("Hello, World!");
>     }
> }
> {code}
> libs
> disruptor-3.2.0.jar
> log4j-api-beta9.jar
> log4j-core-beta9.jar
> jdk1.6.0_45 64bit
> delete file appender and change [AppenderRef ref="Console"] in [Root] work 
> fine.
>            Reporter: moonumi
>            Assignee: Remko Popma
>              Labels: patch
>
> helloworld program does not end. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to