All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clumd.projects.java_common_utils.logging.Main Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package com.clumd.projects.java_common_utils.logging;

import java.io.IOException;
import java.util.List;

import static com.clumd.projects.java_common_utils.logging.common.CustomLevel.*;

public class Main {

    public static void main(String[] args) {

        LogRoot.init(
                "com.clumd.projects.java_common_utils.",
                "UTILS",
                "Box_in_corner"
        ).withHandlers(List.of(
                LogRoot.basicConsoleHandler(false)
        ));

        ExtendedLogger l = LogRoot.createLogger(Main.class);

        l.log(ALL, "Hello World");
        l.log(OFF, "Hello World");
        l.log(NONE, "Hello World");

        l.log(SHUTDOWN, "Hello World");
        l.log(EMERGENCY, "Hello World");
        l.log(FATAL, "Hello World");
        l.log(CRITICAL, "Hello World");
        l.log(SEVERE, "Hello World");
        l.log(ERROR, "Hello World");
        l.log(FAILURE, "Hello World");
        l.log(WARNING, "Hello World");
        l.log(IMPORTANT, "Hello World");
        l.log(NOTIFICATION, "Hello World");
        l.log(INFO, "Hello World");
        l.log(SUCCESS, "Hello World");
        l.log(CONFIG, "Hello World");
        l.log(DATA, "Hello World");
        l.log(VERBOSE, "Hello World");
        l.log(MINOR, "Hello World");
        l.log(DEBUG, "Hello World");
        l.log(TESTING, "Hello World");
        l.log(TRACE, "Hello World");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy