Open SiteSearch 4.1.1
Final

ORG.oclc.log
Class ServerLog

java.lang.Object
  |
  +--ORG.oclc.log.Log
        |
        +--ORG.oclc.log.ServerLog

public class ServerLog
extends Log


Fields inherited from class ORG.oclc.log.Log
out, TRACE_ALL, TRACE_ALL_ON, TRACE_ARCHIVE, TRACE_CERTIFIED, TRACE_CRITICAL, TRACE_ENTERS_AND_EXITS, TRACE_FATAL, TRACE_HOUSEKEEPING, TRACE_INFO, TRACE_MSGS, TRACE_NONE, TRACE_PARMS, TRACE_READ_MSGS, TRACE_WARNING, TRACE_WRITE_MSGS, traceLevel
 
Constructor Summary
ServerLog()
          Construct a ServerLog object.
 
Method Summary
 void close()
          Close the server log.
 PrintStream getLogfile()
          Accessor method to the log file.
 void open()
          Open the log file with the original name information.
 void open(String portAndHost, String serverLogName, String serverLogDir)
          Open the log file with the input name parameters and save them.
 void print(String fromClass, String msg)
          Print to the server log.
 void printError(Object reporter, int errorSeverity, Throwable excep, String shortDescription, String otherDescription)
          Print Errors to the server log.
 void rollOver(long currentTime)
          Check the rollOver time period to close/re-open the server log.
 void setName(String portAndHost, String serverLogName, String serverLogDir)
          Set the name of the Logfile.
 void setrollOverTime(int seconds)
          Set RollOver time
 
Methods inherited from class ORG.oclc.log.Log
getTraceLevel, getTraceLevelString, parseTraceLevel, println, println, println, println, println, println, println, println, putTraceLevel, putTraceLevel, setOut, traceOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLog

public ServerLog()
Construct a ServerLog object.
Method Detail

open

public void open()
Open the log file with the original name information.
Overrides:
open in class Log

open

public void open(String portAndHost,
                 String serverLogName,
                 String serverLogDir)
Open the log file with the input name parameters and save them.
Parameters:
portAndHost - the port and host for the server process
serverLogName - the name of the log file
serverLogDir - the directory for the file
Overrides:
open in class Log

setName

public void setName(String portAndHost,
                    String serverLogName,
                    String serverLogDir)
Set the name of the Logfile.
Parameters:
portAndHost - the port and host for the server process
serverLogName - the name of the log file
serverLogDir - the directory for the file
Overrides:
setName in class Log

print

public void print(String fromClass,
                  String msg)
Print to the server log.
Parameters:
fromClass - the name of the class calling the print
msg - the text to print

printError

public void printError(Object reporter,
                       int errorSeverity,
                       Throwable excep,
                       String shortDescription,
                       String otherDescription)
Print Errors to the server log.
Parameters:
reporter - the object reporting the error
errorSeverity - the Code for the severity of the Error
excep - the Exception or Throwable object
shortDescription - a short textual description of the error
otherDescription - any text that can add additional information to describe the error.
Overrides:
printError in class Log

rollOver

public void rollOver(long currentTime)
Check the rollOver time period to close/re-open the server log.
Parameters:
currentTime - the current millisecond time to compare with the log open time
Overrides:
rollOver in class Log

close

public void close()
Close the server log.
Overrides:
close in class Log

getLogfile

public PrintStream getLogfile()
Accessor method to the log file.
Overrides:
getLogfile in class Log

setrollOverTime

public void setrollOverTime(int seconds)
Set RollOver time
Parameters:
seconds - the number of seconds for the rollover timer
Overrides:
setrollOverTime in class Log

Open SiteSearch 4.1.1
Final