Sunday, September 2, 2012

State of the art of logging in maven project

Yes! Another little maven snippet to copy and paste.
This code snippet enables your maven project to work with latest slf4j and logback version. You must remember to add exclusions for modules that import log4j, JCL.

    
        
            
                org.slf4j
                slf4j-api
                ${slf4j.version}
            
            
                org.slf4j
                jcl-over-slf4j
                ${slf4j.version}
            
            
                org.slf4j
                jul-to-slf4j
                ${slf4j.version}
            
            
                org.slf4j
                log4j-over-slf4j
                ${slf4j.version}
            
            
                ch.qos.logback
                logback-classic
                ${logback.version}
            
        
    
    
        
            org.slf4j
            slf4j-api
        
        
            org.slf4j
            jcl-over-slf4j
        
        
            org.slf4j
            jul-to-slf4j
        
        
            org.slf4j
            log4j-over-slf4j
        
        
            ch.qos.logback
            logback-classic
        
    
    
        UTF-8
        1.6
        1.6
        1.7.2
        1.0.7
    



No comments:

Post a Comment