logback日志输出不同级别到不同文件(开发实例配置)



    
    
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n
        
    
    
    
        
            
            
            D:/home/logs//security-error-%d{yyyy-MM-dd}.log
            
            60
        
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n
        
        
            ERROR
            ACCEPT
            DENY
        
    
    
    
        
            
            D:/home/logs//security-access-%d{yyyy-MM-dd}.log
            
            60
        
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n
        
    

    
    
        
            
            D:/home/logs//security-info-%d{yyyy-MM-dd}.log
            
            60
        
        
            %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n
        
        
            INFO
            ACCEPT
            DENY
        
    



    
    
        
        
        
        
        
    


    
    
        
    


 
  


		
			ch.qos.logback
			logback-classic
			1.0.1
			
				
					org.slf4j
					slf4j-api
				
			
		
		
			org.slf4j
			slf4j-api
			${slf4j.version}
		
		
			org.slf4j
			jcl-over-slf4j
			${slf4j.version}
		




你可能感兴趣的:(java其他)