Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Easy and ready-to-use alternative to Log4j

Posted on 07/04/202119/04/2021 by Edoardo

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)
View on Github

Buy Me A Coffee


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply Cancel 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.

© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme