You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Reshmi Choudhury (JIRA)" <ji...@apache.org> on 2012/07/16 09:19:33 UTC

[jira] [Created] (LOG4J2-62) Configure java.util.logging messages to custom log files using log4j.xml

Reshmi Choudhury created LOG4J2-62:
--------------------------------------

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


[jira] [Commented] (LOG4J2-62) Configure java.util.logging messages to custom log files using log4j.xml

Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
    [ 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


[jira] [Commented] (LOG4J2-62) Configure java.util.logging messages to custom log files using log4j.xml

Posted by "Reshmi Choudhury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4J2-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416032#comment-13416032 ] 

Reshmi Choudhury commented on LOG4J2-62:
----------------------------------------

Thanks for your reply. 

Yes, we are using log4j-1.2.11.jar and it appears that SLF4J could be used with log4j12-1.6.6.jar (http://www.slf4j.org/manual.html).

                
> 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


[jira] [Closed] (LOG4J2-62) Configure java.util.logging messages to custom log files using log4j.xml

Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4J2-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers closed LOG4J2-62.
-----------------------------

    Resolution: Invalid

Closing this since the question doesn't apply to Log4j 2.
                
> 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