An open API service indexing awesome lists of open source software.

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

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