com.elephantdrummer.test.MyClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drummer Show documentation
Show all versions of drummer Show documentation
Elephant Drummer Java Job Scheduler
package com.elephantdrummer.test;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.LogManager;
import java.util.logging.Logger;
public class MyClass {
private static Logger LOGGER = null;
static {
System.setProperty("java.util.logging.SimpleFormatter.format",
"[%1$tF %1$tT] [%4$-7s] %5$s %n");
LOGGER= Logger.getLogger(MyClass.class.getName());
}
public static void main(String[] args) {
System.out.println("-- main method starts --");
LOGGER.info("in MyClass");
LOGGER.warning("a test warning");
}
}