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
- Java Logging Best Practices: 10+ Tips You Should Know to Get the Most Out of Your Logs
The following code examples are available:
- configjul - configuration example for java.util.logging
- exceptions - examples used for exceptions
- log4j2 - Log4j 2 based example
- log4j2json - Log4j 2 based example with logging in JSON
- log4jmasking - Log4j 2 based example with masking functionality
- log4jslf4j - Log4j + SLF4J example
- logback - Logback based example
- performance - Exception performance comparison
- simple - pure Java java.util.logging logging and SLF4J without any additional logging framework
- slf4j - SLF4J based example
- logging_with_log4j - examples for the Logging with Log4j blog post