A simple and extremely small logging library for Java.
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");
}
}
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:
compile 'io.codepace:nanolog:1.1'
<dependency>
<groupId>io.codepace</groupId>
<artifactId>nanolog</artifactId>
<version>1.1</version>
</dependency>
- 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!)
Available here
- Carter Brainerd (cbrnrd) - GitHub
NanoLog is licensed under the MIT license (see LICENSE)
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)