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 PrintStream
      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

        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.
        Specified by:
        write in interface Logger
        Parameters:
        data - array of LogRecords
        Throws:
        java.lang.Exception - when unable to write to storage
      • getStorageSource

        public java.lang.Object getStorageSource()
        Deprecated. 
        Returns my storage source -- a PrintStream
        Specified by:
        getStorageSource in interface Logger
IBM WebSphere Application ServerTM
Release 8.5