https://github.com/sematext/blog-java_logging
Code examples for Java logging blog post
https://github.com/sematext/blog-java_logging
Last synced: about 1 year ago
JSON representation
Code examples for Java logging blog post
- Host: GitHub
- URL: https://github.com/sematext/blog-java_logging
- Owner: sematext
- License: apache-2.0
- Created: 2020-06-28T09:45:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T06:07:55.000Z (over 4 years ago)
- Last Synced: 2025-04-21T11:08:28.894Z (about 1 year ago)
- Language: Java
- Size: 195 KB
- Stars: 10
- Watchers: 2
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code examples for Java logging blog post
The code in this repository was used for demo purposes when writing the blog post about logging and handling exceptions in Java.
The list of blog posts that uses the specified examples are as follows:
* [Java Logging Tutorial: Basic Concepts to Help You Get Started](https://sematext.com/blog/java-logging/)
* [Java Logging Best Practices: 10+ Tips You Should Know to Get the Most Out of Your Logs](https://sematext.com/blog/java-logging-best-practices/)
## Code examples
The following code examples are available:
1. configjul - configuration example for java.util.logging
2. exceptions - examples used for exceptions
3. log4j2 - Log4j 2 based example
4. log4j2json - Log4j 2 based example with logging in JSON
5. log4jmasking - Log4j 2 based example with masking functionality
6. log4jslf4j - Log4j + SLF4J example
7. logback - Logback based example
8. performance - Exception performance comparison
9. simple - pure Java java.util.logging logging and SLF4J without any additional logging framework
10. slf4j - SLF4J based example
11. logging_with_log4j - examples for the Logging with Log4j blog post