Method of configuring log4j log in SSM project
•
Java
This paper introduces the method of configuring log4j log in SSM project and shares it with you, as follows:
Add dependency in POM file
Then create a static logger object in Aopu or interceptor
2.8. Logmanager is used after version 1
The names of the two imported packages are
Use the info method of this logger to print the information to the console
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码