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

com.elephantdrummer.test.MyClass Maven / Gradle / Ivy

The newest version!
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");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy