https://github.com/viveknaskar/spring-boot-log4j-2-demo
A simple Boot application with Log4j2 mechanism integration highly used in enterprise applications for analyzing, detecting and resolving issues if any when the code is deployed in production.
https://github.com/viveknaskar/spring-boot-log4j-2-demo
java log4j log4j2 logging spring-boot
Last synced: 8 months ago
JSON representation
A simple Boot application with Log4j2 mechanism integration highly used in enterprise applications for analyzing, detecting and resolving issues if any when the code is deployed in production.
- Host: GitHub
- URL: https://github.com/viveknaskar/spring-boot-log4j-2-demo
- Owner: viveknaskar
- Created: 2020-07-03T16:39:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T19:34:43.000Z (over 5 years ago)
- Last Synced: 2023-08-29T19:20:05.310Z (about 2 years ago)
- Topics: java, log4j, log4j2, logging, spring-boot
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Boot application with Log4j2 integration
Log4j 2 provides a significant improvement in performance compared to its predecessor. It contains asynchronous loggers and supports multiple APIs including SLF4J, commons logging, and java.util.loggging.
If you have worked in backend, then you would know the importance of logging especially for the applications deployed in production. Inserting log requests into the application code rquires a fair amount of planning and effort.
Observation shows that approximately 4 percent of code is dedicated to logging. Consequently, even moderately sized applications will have thousands big logging statements embedded within their code. Given their number, it becomes imperative to manage these log statements without the need to modify them manually.
This application is just a simple illustration of using Apache's Log4j2 dependency where I have used both ConsoleAppender and RollingFileAppender.