Getting below error when run the batch file.
log4j:WARN No appenders could be found for logger (devpinoyLogger).
log4j:WARN Please initialize the log4j system properly.
Getting below error when run the batch file.
log4j:WARN No appenders could be found for logger (devpinoyLogger).
log4j:WARN Please initialize the log4j system properly.
One quick way to fix this is to add a log4j.properties
file in main/src/test/resources
.
Here's a sample log4j.properties
file that will output logs to the console:
# Set root logger level to INFO and its only appender to stdout.
log4j.rootLogger=INFO, stdout
# Define the stdout appender to output logs to the console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n