Easy and ready-to-use alternative to Log4j

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.


  • 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.