[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slf4j-user
Subject:    [slf4j-user] Redirecting util logs to log4j using Slf4j
From:       murat <muratayengin () gmail ! com>
Date:       2012-01-10 11:42:10
Message-ID: 4F0C2412.40801 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> I am trying to send util logs to log4j  .So i add needed sl4j jars to my \
> classpath.But  i cant see util logs.I am using tomcat6 .My dependencies are below \
> .And output of logging with different type of loggers.
   |
> _loggerUtil.log(Level.SEVERE, "*********************Util log**********");
              _loggerCommon.fatal("*********commons log ************");
              _loggerSlf4j.error("**************sl4j log **************");
              _loggerLog4j.fatal("**************log4j log**************");



      2012-01-05 17:11:35,508 [http-8080-3] ERROR \
com.endersys.itap.ui.module.user.LoginBean - *********commons log ************ \
^[[19~2012-01-05 17:11:43,561 [http-8080-3] ERROR \
com.endersys.itap.ui.module.user.LoginBean - **************sl4j log ************** \
2012-01-05 17:11:44,433 [http-8080-3] FATAL \
com.endersys.itap.ui.module.user.LoginBean - **************log4j log************** ||

    <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-api</artifactId>
         <version>1.6.4</version>
     </dependency>

       <!--java util to slf4j bridge -->
     <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>jul-to-slf4j</artifactId>
         <version>1.6.4</version>
     </dependency>


         <!--common logging  to slf4j bridge -->
     <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>jcl-over-slf4j</artifactId>
         <version>1.6.4</version>
     </dependency>


       <!--sl4j to  log4j bridge-->
     <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-log4j12</artifactId>
         <version>1.6.4</version>
     </dependency>|


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <pre><code>I am trying to send util logs to log4j  .So i add needed sl4j jars to \
my classpath.But  i cant see util logs.I am using tomcat6 .My dependencies are below \
.And output of logging with different type of loggers.  </code>
<code>               _loggerUtil.log(Level.SEVERE, "*********************Util \
log**********");  _loggerCommon.fatal("*********commons log ************");
             _loggerSlf4j.error("**************sl4j log **************");
             _loggerLog4j.fatal("**************log4j log**************");



     2012-01-05 17:11:35,508 [http-8080-3] ERROR \
com.endersys.itap.ui.module.user.LoginBean - *********commons log ************ \
^[[19~2012-01-05 17:11:43,561 [http-8080-3] ERROR \
com.endersys.itap.ui.module.user.LoginBean - **************sl4j log ************** \
2012-01-05 17:11:44,433 [http-8080-3] FATAL \
com.endersys.itap.ui.module.user.LoginBean - **************log4j log************** \
</code><code>

   &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
        &lt;version&gt;1.6.4&lt;/version&gt;
    &lt;/dependency&gt;

      &lt;!--java util to slf4j bridge --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;jul-to-slf4j&lt;/artifactId&gt;
        &lt;version&gt;1.6.4&lt;/version&gt;
    &lt;/dependency&gt;


        &lt;!--common logging  to slf4j bridge --&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
        &lt;version&gt;1.6.4&lt;/version&gt;
    &lt;/dependency&gt;


      &lt;!--sl4j to  log4j bridge--&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
        &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
        &lt;version&gt;1.6.4&lt;/version&gt;
    &lt;/dependency&gt;</code></pre>
  </body>
</html>



_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic