Log4j2 Filter particular level in apender

前端 未结 5 763
天命终不由人
天命终不由人 2020-12-09 12:12

What filter should i use, to define particular level to be logged with apender? For example:

java:

LOGGER.debug(\"Debug message\");
LOGGER.info(\"Inf         


        
5条回答
  •  悲哀的现实
    2020-12-09 12:46

    Actually, from your question it looks like you don't want two different appenders, but two different patterns that are using under different circumstances. For that you should just use a PatternSelector.

        
          
            
            
           
        
    

提交回复
热议问题