Skip to content

Minecraftian14/MyLOGGER

Repository files navigation

MyLOGGER

Collage

A simple logging tool to make console outputs look prettier...

Wanna have a look around? Try visiting these links
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

Setup

Download

allprojects {
    repositories {
        // ... other sources
        maven { url 'https://jitpack.io/#in.mcxiv' }
    }
}

dependencies {
    // ... other dependencies

    // Include the library as a dependency. 
    // Replace TAG_NAME with the number aside jitpack badge.
    implementation 'in.mcxiv:MyLOGGER:TAG_NAME'

    // Optional: To use the annotation processor version instead.
    annotationProcessor 'in.mcxiv:MyLOGGER:TAG_NAME'

}

Initialise

// 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();

Usage

// Print formatted text 
logger.prt(arg1, arg2, arg3 ... argn);

// Print unformatted text
log.raw(arg);

About

A simple logging tool to make console outputs look better.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages