com.bitfactoryinc.logging
Class PrintStreamLogger
java.lang.Object
|
+--com.bitfactoryinc.logging.Logger
|
+--com.bitfactoryinc.logging.PrintStreamLogger
- public class PrintStreamLogger
- extends Logger
Instances of this class write LogEntry information to a PrintStream.
It's most likely use will be as a System console logger--instances of which
can be created by using the static method newConsoleLogger().
| Methods inherited from class com.bitfactoryinc.logging.Logger |
doLog,
getApplication,
getDefaultFilterClass,
getDefaultFormatterClass,
getFilter,
getFormatter,
getSeverityThreshold,
isEnabled,
log,
log,
log,
logCritical,
logCritical,
logDebug,
logDebug,
logError,
logError,
logFatal,
logFatal,
logInfo,
logInfo,
logStatus,
logStatus,
logWarning,
logWarning,
setApplication,
setDefaultFilter,
setDefaultFilterClass,
setDefaultFormatter,
setDefaultFormatterClass,
setEnabled,
setFilter,
setFormatter,
setSeverityThreshold,
shouldLog |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
printStream
private java.io.PrintStream printStream
PrintStreamLogger
private PrintStreamLogger()
PrintStreamLogger
public PrintStreamLogger(java.io.PrintStream aPrintStream)
getPrintStream
protected java.io.PrintStream getPrintStream()
newConsoleLogger
public static PrintStreamLogger newConsoleLogger()
setPrintStream
protected void setPrintStream(java.io.PrintStream newPrintStream)
writeToLog
protected boolean writeToLog(java.lang.String s)
- Description copied from class: Logger
- Subclasse can override this method if they want to simply write a String to their log.
Return true for successful processing of the log, false otherwise.
- Overrides:
- writeToLog in class Logger