com.ibm.websphere.als
Class FileLogger
- java.lang.Object
-
- com.ibm.websphere.als.FileLogger
-
- All Implemented Interfaces:
- Logger
Deprecated.
public class FileLogger extends java.lang.Object implements Logger
This class implements Logger interface for file persistence. It writes LogRecords into a file formatted as following:If a field is null, a dash (-) will be written in that position. See DatabaseLogger class for definition of the fields.
- See Also:
DatabaseLogger
-
-
Constructor Summary
Constructors Constructor and Description FileLogger(java.io.PrintStream ps)
Deprecated.Constructs a file-base Logger.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Object
getStorageSource()
Deprecated.Returns my storage source -- a PrintStreamvoid
write(LogRecord[] data)
Deprecated.Writes the data to the presistent medium.
-
-
-
Constructor Detail
-
FileLogger
public FileLogger(java.io.PrintStream ps)
Deprecated.Constructs a file-base Logger.- Parameters:
ps
- - a PrintStream. If this stream is the System.out and the calling webapp defines Standard Output file (see WebSphere Application Server Administrative Console), the output will go to the webapp's Standard Output file.
-
-
Method Detail
-
write
public void write(LogRecord[] data) throws java.lang.Exception
Deprecated.Writes the data to the presistent medium.
-
getStorageSource
public java.lang.Object getStorageSource()
Deprecated.Returns my storage source -- a PrintStream- Specified by:
getStorageSource
in interfaceLogger
-
-