An open API service indexing awesome lists of open source software.

https://github.com/cbrnrd/nanolog

:memo: A simple and extremely small logging library for Java.
https://github.com/cbrnrd/nanolog

gradle java logging small speed

Last synced: about 1 month ago
JSON representation

:memo: A simple and extremely small logging library for Java.

Awesome Lists containing this project

README

          

# NanoLog [![Download](https://api.bintray.com/packages/codepace/NanoLog/NanoLog/images/download.svg)](https://bintray.com/codepace/NanoLog/NanoLog/_latestVersion)
A simple and extremely small logging library for Java.

## Getting Started

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

```java
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:

```java
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)

```xml

io.codepace
nanolog
1.1

```

## 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](https://cbrnrd.github.io/NanoLog/)

## Authors
- Carter Brainerd (cbrnrd) - [GitHub](https://github.com/cbrnrd)

## Legal stuff
NanoLog is licensed under the MIT license (see [LICENSE](https://github.com/cbrnrd/NanoLog/blob/master/LICENSE))

## Built with
* [Gradle](https://gradle.org/)
* [Maven](https://maven.apache.org/)
* [Bintray](https://bintray.com)

## 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)
```