You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Cédric Damioli (JIRA)" <ji...@apache.org> on 2010/04/06 12:29:33 UTC

[jira] Created: (COCOON-2288) Allow usage of SLF4J for traces

Allow usage of SLF4J for traces
-------------------------------

                 Key: COCOON-2288
                 URL: https://issues.apache.org/jira/browse/COCOON-2288
             Project: Cocoon
          Issue Type: New Feature
          Components: * Cocoon Core
            Reporter: Cédric Damioli
             Fix For: 2.1.12-dev (Current SVN)
         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java

Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Cédric Damioli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854011#action_12854011 ] 

Cédric Damioli commented on COCOON-2288:
----------------------------------------

Indeed, the goal is to use logback, which is IMHO more featured than log4j
And you're right, we previously used log4j and the avalon bridge was perfectly ok.

Another reason is that the logging Avalon facade will probably never evolve whereas SLF4J will certainly do.
Many other Apache projects are SLF4J compliant (we also use Jackrabbit and they will certainly go to logback by default as well).


> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Jasha Joachimsthal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853882#action_12853882 ] 

Jasha Joachimsthal commented on COCOON-2288:
--------------------------------------------

Cédric, which version of slf4j-api.jar did you use?

> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Cédric Damioli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cédric Damioli updated COCOON-2288:
-----------------------------------

    Attachment: SLF4JLoggerManager.java
                SLF4JLogger.java

note that this classes depends on slf4j-api.jar, which has to be added to cocoon dependencies

> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Cédric Damioli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853892#action_12853892 ] 

Cédric Damioli edited comment on COCOON-2288 at 4/6/10 11:33 AM:
-----------------------------------------------------------------

I personnally use 1.5.3 in my project, but I've tested with the latest 1.5.11 without any problem

      was (Author: cedric):
    I personnally use 1.5.3 in my project, but I've teste with the latest 1.5.11 without any problem
  
> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Cédric Damioli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853892#action_12853892 ] 

Cédric Damioli commented on COCOON-2288:
----------------------------------------

I personnally use 1.5.3 in my project, but I've teste with the latest 1.5.11 without any problem

> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COCOON-2288) Allow usage of SLF4J for traces

Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853992#action_12853992 ] 

Ralph Goers commented on COCOON-2288:
-------------------------------------

Not that there is anything wrong with your code, but it does seem a bit strange to have a logging facade - the Avalon Logger interface - call another facade - SLF4J. However, if you want to use Logback as your implementation that is the only way that is supported. SLF4J really isn't need to allow the Avalon Logger to bridge to Log4j, or java.util.logging.

> Allow usage of SLF4J for traces
> -------------------------------
>
>                 Key: COCOON-2288
>                 URL: https://issues.apache.org/jira/browse/COCOON-2288
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>            Reporter: Cédric Damioli
>             Fix For: 2.1.12-dev (Current SVN)
>
>         Attachments: SLF4JLogger.java, SLF4JLoggerManager.java
>
>
> Attached are two classes allowing to use SLF4J as logging facade inside Cocoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.