com.clumd.projects.java_common_utils.logging.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-common-utils Show documentation
Show all versions of java-common-utils Show documentation
A collection of common utilities I find myself writing for most Java projects
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");
}
}