logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "moonumi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-537) application does not end.
Date Thu, 27 Feb 2014 09:08:20 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914239#comment-13914239
] 

moonumi commented on LOG4J2-537:
--------------------------------

thank to comment Remko Popma.

I will test and learn log4j2 at example source from log4j2 document.

and test sync and async logging so that add disruptor lib to my test project classpath.

also interest to disruptor lib from lmax  and other high perfomance library(chronicle, akka,
netty, etc...)

I be sure log4j2 configuration not async mode under my project use disruptor library.
a final result I made endless application???

log4j2 work correct not only disruptor library exist but also not exist  on sync configuration
mode

log4j2 aysnc mode working correct in async log4j2 configuration on log4j2 example. 












> 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: jdk1.6.0_45 64bit
>            Reporter: moonumi
>            Assignee: Remko Popma
>              Labels: patch
>
> The helloworld program below does not end. (Process keeps running.)
> 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
> delete file appender and change [AppenderRef ref="Console"] in [Root] work fine.



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

---------------------------------------------------------------------
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