Package edu.berkeley.nlp.lm.util
Class Logger.NullLogger
java.lang.Object
edu.berkeley.nlp.lm.util.Logger.NullLogger
- All Implemented Interfaces:
Logger.LogInterface
- Enclosing class:
- Logger
Default logging goes nowhere.
- Author:
- adampauls
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endTrack()
Ends a track, printing out how long the track took.void
void
void
Log a string, but only once in a while.void
Always log this string.void
void
startTrack
(String s) Start a track (a function, or some other logical unit of computation) with a name given bys
.void
void
-
Constructor Details
-
NullLogger
public NullLogger()
-
-
Method Details
-
logs
Description copied from interface:Logger.LogInterface
Log a string, but only once in a while. This is useful when we are logging frequently and only wish to see lines every second or so. How often logging is done is up to the implementation.- Specified by:
logs
in interfaceLogger.LogInterface
- Parameters:
s
- printf style stringargs
- printf args
-
logss
Description copied from interface:Logger.LogInterface
Always log this string.- Specified by:
logss
in interfaceLogger.LogInterface
-
startTrack
Description copied from interface:Logger.LogInterface
Start a track (a function, or some other logical unit of computation) with a name given bys
.- Specified by:
startTrack
in interfaceLogger.LogInterface
-
endTrack
public void endTrack()Description copied from interface:Logger.LogInterface
Ends a track, printing out how long the track took.- Specified by:
endTrack
in interfaceLogger.LogInterface
-
dbg
- Specified by:
dbg
in interfaceLogger.LogInterface
-
err
- Specified by:
err
in interfaceLogger.LogInterface
-
err
- Specified by:
err
in interfaceLogger.LogInterface
-
warn
- Specified by:
warn
in interfaceLogger.LogInterface
-
warn
- Specified by:
warn
in interfaceLogger.LogInterface
-
logss
- Specified by:
logss
in interfaceLogger.LogInterface
-