pom.xml
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
log4j.properties
log4j.rootLogger=INFO.console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss.SSS} %-5p %-60c %X - %m%n
Errors found:
log4j:WARN No appenders could be found for logger (org.apache.flink.streaming.api.graph.StreamGraphGenerator).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Later, it was found that the configuration was written incorrectly. Just change “log4j. Rootlogger = info. Console” to “log4j. Rootlogger = info, console”
Read More:
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- log4j:WARN No appenders could be found for logger (freemarker.cache)
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- [Solved] Spark Error: ERROR StatusLogger No log4j2 configuration file found
- Log jar package conflict error: Class path contains multiple SLF4J bindings
- [Solved] Arm Server kibana7.4.1 Error: Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties
- [Solved] Neo4j error: Import-Module & neo4j Neo.ClientError.Security.Unauthorized
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [neo4j] error report when visiting neo4j in spring boot project
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- [Solved] ELK Log System Error: “statusCode“:429,“error“:“Too Many Requests“,“message“ Data too large
- [Solved] Neo4j error: Cannot merge the following node because of null property value for ‘casualty’
- MAC-XXL_JOB Error: Failed to create parent directories for [/data/applogs/xxl-job/xxl-job-admin.log
- rsyslog Write into Log File Error [How to Solve]
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to J
- [Solved] Logging system failed to initialize using configuration from ‘classpathlogbacklogback-spring.xml‘