com.ibm.websphere.als

Class FileLogger

  1. java.lang.Object
  2. extended bycom.ibm.websphere.als.FileLogger
All implemented interfaces:
Logger

Deprecated.
  1. public class FileLogger
  2. extends java.lang.Object
  3. 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

Constructor and Description
FileLogger(java.io.PrintStream ps)
Deprecated. Constructs a file-base Logger.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getStorageSource()
Deprecated. Returns my storage source -- a PrintStream
  1. void
write(LogRecord[] data)
Deprecated. Writes the data to the presistent medium.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

FileLogger

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

  1. public void write(LogRecord[] data)
  2. throws java.lang.Exception
Deprecated.
Writes the data to the presistent medium.
Specified by:
write in interface Logger
Parameters:
data - array of LogRecords
Throws:
java.lang.Exception - when unable to write to storage

getStorageSource

  1. public java.lang.Object getStorageSource( )
Deprecated.
Returns my storage source -- a PrintStream
Specified by:
getStorageSource in interface Logger