|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.log.Log | +--ORG.oclc.log.ServerLog
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 |
public ServerLog()
Method Detail |
public void open()
public void open(String portAndHost, String serverLogName, String serverLogDir)
portAndHost
- the port and host for the server processserverLogName
- the name of the log fileserverLogDir
- the directory for the filepublic void setName(String portAndHost, String serverLogName, String serverLogDir)
portAndHost
- the port and host for the server processserverLogName
- the name of the log fileserverLogDir
- the directory for the filepublic void print(String fromClass, String msg)
fromClass
- the name of the class calling the printmsg
- the text to printpublic void printError(Object reporter, int errorSeverity, Throwable excep, String shortDescription, String otherDescription)
reporter
- the object reporting the errorerrorSeverity
- the Code for the severity of the Errorexcep
- the Exception or Throwable objectshortDescription
- a short textual description of the errorotherDescription
- any text that can add additional information
to describe the error.public void rollOver(long currentTime)
currentTime
- the current millisecond time to compare with the log open timepublic void close()
public PrintStream getLogfile()
public void setrollOverTime(int seconds)
seconds
- the number of seconds for the rollover timer
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |