×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Gerrit Viljoen
Added: May 8, 2014 1:11 PM
Views: 28
A quick and dirty logger.

For Apache Commons Lang 3
import org.apache.commons.lang3.time.DateFormatUtils;
  1.     private static void log(Object message) {
  2.         System.out.println(DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss") + " - " + message);
  3.     }