https://github.com/m4schini/fancylog
Super simple library for super easy console logging
https://github.com/m4schini/fancylog
console java loadingbar
Last synced: 12 months ago
JSON representation
Super simple library for super easy console logging
- Host: GitHub
- URL: https://github.com/m4schini/fancylog
- Owner: m4schini
- License: mit
- Created: 2019-04-24T18:04:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-05T23:08:29.000Z (over 6 years ago)
- Last Synced: 2025-02-10T04:34:06.910Z (about 1 year ago)
- Topics: console, java, loadingbar
- Language: Java
- Homepage:
- Size: 226 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FancyLog
  
Super simple library for super easy console logging
## Installation
Include the Maven artifact:
```xml
com.github.m4schini
FancyLog
2.1.2
```
Or include the [JAR](https://github.com/m4schini/FancyLog/releases) in your project.
## Features
Every line is printed with a timestamp: "HH:mm:ss > "
```java
Log.status(Object text); //Standard println output
Log.success(Object text); //green text
Log.warning(Object text); //"Warning: " yellow text
Log.error(Object text); //"Error: " red text
Log.critical(Object text); //"Critical: " Red background and black text
Log.divide(); //Prints: -------------------------------------
```

You can also print a loadingbar if your programm, well, needs to load something...
This was propably kind of obvious.
```java
//Range: 0-10
Log.loading(10); => |##############################| 100%
Log.loading(0); => | | 0%
Log.loading(-1); => |------------------------------| 0%
```
You can easily turn logging on and off.
```java
Log.enableLog(true); //enable log
Log.enableLog(false); //disable log
```