use of com.ms.silverking.log.HighTemporalResolutionFormatter in project SilverKing by Morgan-Stanley.
the class TerminatorAsyncLogger method getLogger.
private Logger getLogger() throws FileNotFoundException {
synchronized (this) {
// not really needed yet, but TerminatorAsyncLogger is exposed to more than one thread
if (log == null) {
PrintStream ps = new PrintStream(new File(logFileName));
log = Logger.getLogger(argusLoggerName);
Formatter formatter = new HighTemporalResolutionFormatter();
handler = new StreamHandler(ps, formatter);
log.addHandler(handler);
log.setLevel(Level.ALL);
}
return log;
}
}
Aggregations