Skip to content
📝 A simple and extremely small logging library for Java.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gradle
.idea
docs
gradle/wrapper
src/main/java/io/codepace/nanolog
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
pom.xml
settings.gradle

README.md

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)

You can’t perform that action at this time.