I wrote a one-class logger, lightweight and very easy to use. It can be a good alternative to Log4j for small projects or if you want to customize you logging experience.
Features
- It’s a self-contained one-class logger
- No third party dependencies required
- Fully customizable
- It works with jar packages
- Different levels of logging
- Logs on stdout or file
- Easy to use…very easy
How to use
- Copy the
OneClassLogger.java
file in your Java source folder - Create a
log.options
file (optional) - Checkout
Main.java
for some examples (optional)
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.