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.
- Host: GitHub
- URL: https://github.com/cbrnrd/nanolog
- Owner: cbrnrd
- License: mit
- Created: 2017-07-05T23:36:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T04:33:34.000Z (almost 8 years ago)
- Last Synced: 2025-03-26T14:28:53.972Z (about 1 year ago)
- Topics: gradle, java, logging, small, speed
- Language: Java
- Homepage:
- Size: 230 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NanoLog [](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)
```