Skip to content
/ NanoLog Public

📝 A simple and extremely small logging library for Java.

License

Notifications You must be signed in to change notification settings

cbrnrd/NanoLog

Repository files navigation

NanoLog Download

A simple and extremely small logging library for Java.

Getting Started

A simple program using the non-static NanoLog class looks like so:

import io.codepace.nanolog.NanoLog;

public class Example{
  public static void main(String[] args){
    NanoLogger logger = new NanoLogger(HOME_DIR + "/example");
    logger.log("Message here", LogType.INFO);
  }
}

or using the static Logger class:

import io.codepace.nanolog.Logger;
import io.codepace.nanolog.Helpers.*;

public class Example{
  public static void main(String[] args){
    Logger.init(HOME_DIR + "test.log");
    Logger.info("Informational message");
  }
}

Installing

To install and use NanoLog in your projects you can download the source and build it with gradle, or you can include it in your project dependencies:

Gradle (build.gradle)

compile 'io.codepace:nanolog:1.1'

Maven (pom.xml)

<dependency>
  <groupId>io.codepace</groupId>
  <artifactId>nanolog</artifactId>
  <version>1.1</version>
</dependency>

Design Highlights

  • Static and non-static logging classes for ease of use and
  • Simple and easy to use API for rapid development and integration with your projects.
  • Very small JAR size (around 5K!)

Documentation

Available here

Authors

  • Carter Brainerd (cbrnrd) - GitHub

Legal stuff

NanoLog is licensed under the MIT license (see LICENSE)

Built with

Thank you

Thank you for using NanoLog 👏. If you're feeling generous, donations are always appreciated:

19XiyrvqyYNLehf89ckBjPQYCfW77F9rx7 (Ƀ, BTC)
0xf6f247e4a929890926F88144111f5E27d87bD07a (ETH)
LQRUJUpSkmi5BfT6nyPVNKKoLWbnpZ64sL (Ł, LTC)
https://www.paypal.me/0xCB (PayPal)

About

📝 A simple and extremely small logging library for Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages