Stellent
HowToComponents
JavaDoc

intradoc.common
Class IdcLogWriter

java.lang.Object
  |
  +--intradoc.common.IdcLogWriter
All Implemented Interfaces:
LogWriter

public class IdcLogWriter
extends java.lang.Object
implements LogWriter

An interface for all logging events


Field Summary
static java.lang.String m_logFooter
           
static char[] m_logFooterArray
           
 
Constructor Summary
IdcLogWriter()
           
 
Method Summary
 void doMessageAppend(int messageType, java.lang.String msg, LogDirInfo logDirInfo, java.lang.Throwable t)
          All add message services go through here.
static java.io.RandomAccessFile findDate(java.io.File file, LogFileInfo info)
          Each log file has a date towards the top.
protected  void formatLinkPage(LogDirInfo logDirInfo)
          Formats page containing listing of log files.
 java.lang.String generateLinkPageEntry(LogFileInfo info)
           
 java.lang.String generateLinkPageHeader(LogDirInfo logDirInfo)
           
 java.lang.String generateLogEntry(java.util.Calendar curTime, java.lang.String msgType, java.lang.String msg, java.lang.Throwable t)
           
 java.lang.String generateLogHeader(java.util.Calendar curTime, LogDirInfo logDirInfo)
          generate the header for this log file.
 LogFileInfo getLogFileInfo(LogDirInfo logDirInfo, java.lang.String logNumber)
           
 java.lang.String getMetaTag()
           
protected  void processDirList(LogDirInfo logDirInfo, boolean createLinkFile)
          Gets a directory listing of all current log files and determines what order they should be listed in and outputs result to a listing file.
static int readAsCharacters(java.io.RandomAccessFile accessFile, char[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_logFooterArray

public static final char[] m_logFooterArray

m_logFooter

public static final java.lang.String m_logFooter
See Also:
Constant Field Values
Constructor Detail

IdcLogWriter

public IdcLogWriter()
Method Detail

doMessageAppend

public void doMessageAppend(int messageType,
                            java.lang.String msg,
                            LogDirInfo logDirInfo,
                            java.lang.Throwable t)
All add message services go through here.

Specified by:
doMessageAppend in interface LogWriter

formatLinkPage

protected void formatLinkPage(LogDirInfo logDirInfo)
Formats page containing listing of log files. Calls 'processDirList' to do actual work.


processDirList

protected void processDirList(LogDirInfo logDirInfo,
                              boolean createLinkFile)
Gets a directory listing of all current log files and determines what order they should be listed in and outputs result to a listing file.


generateLogHeader

public java.lang.String generateLogHeader(java.util.Calendar curTime,
                                          LogDirInfo logDirInfo)
generate the header for this log file. It must have the string '' in it in order for it to be parsable, where timestamp is a LONG.


generateLogEntry

public java.lang.String generateLogEntry(java.util.Calendar curTime,
                                         java.lang.String msgType,
                                         java.lang.String msg,
                                         java.lang.Throwable t)

generateLinkPageHeader

public java.lang.String generateLinkPageHeader(LogDirInfo logDirInfo)

generateLinkPageEntry

public java.lang.String generateLinkPageEntry(LogFileInfo info)

getLogFileInfo

public LogFileInfo getLogFileInfo(LogDirInfo logDirInfo,
                                  java.lang.String logNumber)

getMetaTag

public java.lang.String getMetaTag()

findDate

public static java.io.RandomAccessFile findDate(java.io.File file,
                                                LogFileInfo info)
                                         throws java.io.IOException,
                                                ParseSyntaxException
Each log file has a date towards the top. This service finds that date string and parses it.

java.io.IOException
ParseSyntaxException

readAsCharacters

public static int readAsCharacters(java.io.RandomAccessFile accessFile,
                                   char[] buf)
                            throws java.io.IOException
java.io.IOException


(c) 1996-2005  All rights reserved.  Stellent, Inc.