logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-62) Configure java.util.logging messages to custom log files using log4j.xml
Date Mon, 16 Jul 2012 15:32:35 GMT

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

Ralph Goers commented on LOG4J2-62:
-----------------------------------

The Jira system is for reporting issues with Log4j 2 and it appears your issue is with Log4j
1.x.  

One way to accomplish what you want is to use SLFJ's bridging suipport (see http://www.slf4j.org/legacy.html)
and then route JUL to SLF4J to Log4j via jul-to-slf4j.jar, slf4j-api.jar, and then slf4j-log4j12.jar.
 Log4j 2 has not yet implemented support for the java.util.logging  API.  To do it today you
would replace the slf4j-log4j12.jar with Log4j 2's slf4j-impl.jar. However, that will route
any logging using SLF4J to Log4j 2 and would require you to remove any other SLF4J implementation.
                
> Configure java.util.logging messages to custom log files using log4j.xml
> ------------------------------------------------------------------------
>
>                 Key: LOG4J2-62
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-62
>             Project: Log4j 2
>          Issue Type: Question
>            Reporter: Reshmi Choudhury
>
> Hi,
> Websphere and Trinidad is using “java.util.logging” for logging application related
messages. These application related messages are getting logged in the console as a default
option.
> However the requirement at our end is to log all these application related messages to
custom log files and configure the “java.util.logging” related log messages using log4j.xml.
We are using log4j-1.2.11.jar. 
> Could you please let me know the way to configure these  “java.util.logging” related
log messages to custom log files using log4j.xml.
> Thanks in advance.
> Regards,
> Reshmi

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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