| java.lang.Object Shared.Logging.Internal.GenericLogger Shared.Logging.Internal.FileLogger
FileLogger | public class FileLogger extends GenericLogger (Code) | | The file logger, which writes to a set of files.
If the current target file exceeds a limit size,
the logger changes to the next file.
|
Constructor Summary | |
public | FileLogger(String logIdentifier, String _basisTargetFileName, String _targetFileEnding, String _basisTargetDirectoryPath, int _numberOfTargetFiles, int _fileSizeLimitInBytes) Constructor. |
Method Summary | |
public synchronized void | publish(String levelName, String message) Writes the log text to the current log file. | public synchronized void | publish(String levelName, Throwable throwable) Writes the stacktrace to the current log file. | public void | publishDirectly(String message) This one just logs the message directly without any formatting. | public synchronized void | terminate() This is called by the Logs shutdown hook.
The logger must close any open streams and if required
do further cleanup. |
FileLogger | public FileLogger(String logIdentifier, String _basisTargetFileName, String _targetFileEnding, String _basisTargetDirectoryPath, int _numberOfTargetFiles, int _fileSizeLimitInBytes) throws IOException(Code) | | Constructor.
Creates a file logger, which writes to files with
filenames of the form basisTargetFileName_Number.targetFileEnding.
where number is increased when the current file has
exceeded the fileSizeLimitInKiloBytes.
Number will be in the intervall [0..numberOfTargetFiles-1].
basisTargetDirectory must point to a directory with write access.
The file with index 0 always has the most uptodate log outputs,
and the higher the indes, the older the information contained.
|
publish | public synchronized void publish(String levelName, String message)(Code) | | Writes the log text to the current log file.
|
publish | public synchronized void publish(String levelName, Throwable throwable)(Code) | | Writes the stacktrace to the current log file.
|
publishDirectly | public void publishDirectly(String message)(Code) | | This one just logs the message directly without any formatting.
|
terminate | public synchronized void terminate()(Code) | | This is called by the Logs shutdown hook.
The logger must close any open streams and if required
do further cleanup. The JVM will shutdown short time
after this call.
|
|
|