logback.xml配置说明

 以下仅是个人学习记录,说明并不全,请见谅。







	
	
	
	
	
	
	${APP_Name}

	
	
	
	

	
	
		
		
			info
		
		
			${CONSOLE_LOG_PATTERN}
			
			
			UTF-8
		
	


	

	
	
		
		${log.path}/log.log
		
		
			%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
			UTF-8 
		
		
		
			
			${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log
			
				100MB
			
			
			15
		
		
		
			debug
			ACCEPT
			DENY
		
	

	
	
		
		${log.path}/log_info.log
		
		
			%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
			UTF-8
		
		
		
			
			${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log
			
				100MB
			
			
			15
		
		
		
			info
			ACCEPT
			DENY
		
	

	
	
		
		${log.path}/log_warn.log
		
		
			%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
			UTF-8 
		
		
		
			${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log
			
				100MB
			
			
			15
		
		
		
			warn
			ACCEPT
			DENY
		
	


	
	
		
		${log.path}/log_error.log
		
		
			%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
			UTF-8 
		
		
		
			${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log
			
				100MB
			
			
			15
		
		
		
			ERROR
			ACCEPT
			DENY
		
	

	
	
	
	


	

	
	
		
	

	
		
		
		
		
		
	

	
	
        
            
            
            
            
            
        
    

 此外、eclipse还需要安装插件:

logback.xml配置说明_第1张图片

你可能感兴趣的:(学习)