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 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
-
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
-