|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orindasoft.pub.GenericLog
com.orindasoft.pub.TextLog
public class TextLog
A heavyweight implementation of LogInterface.
TextLog is a logging mechanism designed for large volumes of data
over a protracted period of time. Log files are stored in their own
dedicated directory structure.
See LogInterface
(c) Copyright 2003 - 2012 Orinda Software Ltd
| Field Summary |
|---|
| Fields inherited from interface com.orindasoft.pub.LogInterface |
|---|
DEBUG, DEFAULT_FIELD_DELIMITER, DEFAULT_FILENAME_DAY_FORMAT, DEFAULT_FILENAME_TIME_FORMAT, DEFAULT_TIME_FORMAT_STRING, ERROR, INFO, SYSERR, WARN |
| Constructor Summary | |
|---|---|
TextLog(java.lang.String thePrefix)
Create an instance of TextLog. |
|
TextLog(java.lang.String theDirectoryName,
java.lang.String thePrefix)
Create an instance of TextLog. |
|
| Method Summary | |
|---|---|
void |
close()
Flush and close the current log file. |
void |
flush()
Flush any outstanding changes. |
boolean |
getConsoleOutput()
Find out whether messages are being sent to standard output and standard error. |
java.lang.String |
getCurrentLog()
Get current log file name. |
void |
setConsoleOutput(boolean sendOutputToConsole)
Set whether messages are to be sent to standard output and standard error. |
| Methods inherited from class com.orindasoft.pub.GenericLog |
|---|
debug, debug, debugOff, debugOn, error, error, error, error, getDateFormat, getDebug, info, info, setAutoFlush, setAutoLog, syserror, syserror, syserror, syserror, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.orindasoft.pub.LogInterface |
|---|
debug, debug, debugOff, debugOn, error, error, error, error, getDateFormat, getDebug, info, info, setAutoFlush, setAutoLog, syserror, syserror, syserror, syserror, warning, warning |
| Constructor Detail |
|---|
public TextLog(java.lang.String thePrefix)
String - logPrefix A mnemonic prefix used for naming the log file.
public TextLog(java.lang.String theDirectoryName,
java.lang.String thePrefix)
String - theDirectory the absolute path of the logging directory.String - logPrefix An mnemonic prefix used for naming the log file.| Method Detail |
|---|
public void close()
public void flush()
flush in interface LogInterfaceflush in class GenericLogpublic java.lang.String getCurrentLog()
getCurrentLog in interface LogInterfacegetCurrentLog in class GenericLogpublic boolean getConsoleOutput()
public void setConsoleOutput(boolean sendOutputToConsole)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||