Package edu.berkeley.nlp.lm.util
Interface Logger.LogInterface
- All Known Implementing Classes:
Logger.CompoundLogger,Logger.NullLogger,Logger.SystemLogger
- Enclosing class:
Logger
public static interface Logger.LogInterface
Logging interface.
- Author:
- adampauls
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendTrack()Ends a track, printing out how long the track took.voidvoidvoidLog a string, but only once in a while.voidAlways log this string.voidvoidstartTrack(String s) Start a track (a function, or some other logical unit of computation) with a name given bys.voidvoid
-
Method Details
-
logs
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.- Parameters:
s- printf style stringargs- printf args
-
logss
Always log this string.- Parameters:
s-
-
logss
-
startTrack
Start a track (a function, or some other logical unit of computation) with a name given bys.- Parameters:
s-
-
endTrack
void endTrack()Ends a track, printing out how long the track took. -
dbg
-
err
-
err
-
warn
-
warn
-