Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m4schini/fancylog
Super simple library for super easy console logging
https://github.com/m4schini/fancylog
console java loadingbar
Last synced: 1 day 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 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-05T23:08:29.000Z (over 5 years ago)
- Last Synced: 2023-07-26T21:59:59.713Z (over 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
![GitHub](https://img.shields.io/github/license/m4schini/FancyLog?style=flat-square) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/m4schini/FancyLog?style=flat-square) ![Maven Central](https://img.shields.io/maven-central/v/com.github.m4schini/FancyLog?style=flat-square)
Super simple library for super easy console logging
## Installation
Include the Maven artifact:
```xmlcom.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 textLog.divide(); //Prints: -------------------------------------
```
![In Console Looks](https://github.com/m4schini/FancyLog/blob/master/FancyLogExample.PNG)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
```