A simple logging tool to make console outputs look prettier...
Get an intro to "writing formatting codes" at,
Other important stuff regarding the usage of this tool,
Get simple and complicated examples for better insight,
You know, you can also create Tables with this tool!
And well, we have simple plotting tools too,
For console specific compatibility,
allprojects {
repositories {
// ... other sources
maven { url 'https://jitpack.io' }
}
}
dependencies {
// ... other dependencies
// Include the library as a dependency.
// Replace TAG_NAME with the number aside jitpack badge.
implementation 'com.github.Minecraftian14:MyLOGGER:TAG_NAME'
// Optional: To use the annotation processor version instead.
annotationProcessor 'com.github.Minecraftian14:MyLOGGER:TAG_NAME'
}
// Default initialisation, to print to Console.
FLog logger = FLog.getNew();
// The annotation processor version.
FLog logger = ALog.getNew();
// To write logs to to a file "Hello.txt".
FLog logger = FileLog.getNew("new.txt");
// to use a custom Decoration
log.setDecorationType(Decorations.TAG); // enable tag decos.
log.setDecorationType(Decorations.RAW); // enable raw decos, ie, no strange characters.
// creating a logger to both, print to console and write to file.
FLog log = ULog.forNew()
.add(FLog.getNew())
.add(FileLog.getNew("new.txt"))
.create();
// Print formatted text
logger.prt(arg1, arg2, arg3 ... argn);
// Print unformatted text
log.raw(arg);