edu.berkeley.nlp.lm.util
Class Logger

java.lang.Object
  extended by edu.berkeley.nlp.lm.util.Logger

public class Logger
extends Object

Basic logging singleton class. The underlying LogInterface instance can be changed to customize logging behaviour by calling setGlobalLogger.

Author:
adampauls

Nested Class Summary
static class Logger.CompoundLogger
          Convenience class for stringing together loggers.
static interface Logger.LogInterface
          Logging interface.
static class Logger.NullLogger
          Default logging goes nowhere.
static class Logger.SystemLogger
          Logs to System.out and System.err
 
Constructor Summary
Logger()
           
 
Method Summary
static void dbg(String s)
           
static void endTrack()
           
static void err(String s)
           
static void err(String s, Object... args)
           
static Logger.LogInterface getGlobalLogger()
           
static Logger.LogInterface i()
           
static void logs(String s)
           
static void logs(String s, Object... args)
           
static void logss(String s)
           
static void logss(String string, Object... args)
           
static void setGlobalLogger(Logger.LogInterface logger)
           
static void setLogger(Logger.LogInterface i)
           
static void startTrack(String s, Object... args)
           
static void warn(String s)
           
static void warn(String string, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

setGlobalLogger

public static void setGlobalLogger(Logger.LogInterface logger)

getGlobalLogger

public static Logger.LogInterface getGlobalLogger()

i

public static Logger.LogInterface i()

setLogger

public static void setLogger(Logger.LogInterface i)

logs

public static void logs(String s)

logs

public static void logs(String s,
                        Object... args)

logss

public static void logss(String s)

startTrack

public static void startTrack(String s,
                              Object... args)

endTrack

public static void endTrack()

dbg

public static void dbg(String s)

err

public static void err(String s)

err

public static void err(String s,
                       Object... args)

warn

public static void warn(String s)

warn

public static void warn(String string,
                        Object... args)

logss

public static void logss(String string,
                         Object... args)