Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

log4j2.properties file need to save in spring boot application

log4j2.Properties
status = error
name = PropertiesConfig
 
filters = threshold
 
filter.threshold.type = ThresholdFilter
filter.threshold.level = debug
 
appenders = console
 
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
 
rootLogger.level = debug
rootLogger.appenderRefs = stdout
rootLogger.appenderRef.stdout.ref = STDOUT
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #file #save #spring #boot #application
ADD COMMENT
Topic
Name
9+9 =