|
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.UserLog
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 | |
UserLog()
|
Method Summary | |
void |
close()
Close the user log. |
PrintStream |
getLogfile()
Get the file object. |
void |
open()
Open the log file with the original name information. |
void |
open(String user,
String fileName,
String logDirectory)
Open the log file with the input naming parameters. |
void |
print(String fromClass,
String msg)
Print to the user log. |
void |
printError(Object reporter,
int errorSeverity,
Throwable excep,
String shortDescription,
String otherDescription)
Print Errors to the log. |
void |
rollOver(long currentTime)
Shuts/Re-opens the user log file - currently not used. |
void |
setName(String id,
String logName,
String logDir)
Sets the filename for the log file. |
void |
setrollOverTime(int time)
Sets the userlog rollover time - currently not used. |
void |
UserLog()
Construct a UserLog object. |
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 UserLog()
Method Detail |
public void UserLog()
public void open(String user, String fileName, String logDirectory)
user
- the user id informationserverLogName
- the name of the log fileserverLogDir
- the directory for the filepublic void open()
public 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 objectshortDescription
- a short textual description of the errorotherDescription
- any text that can add additional information
to describe the error.public PrintStream getLogfile()
public void setName(String id, String logName, String logDir)
id
- the user identification stringlogName
- the filename of the loglogDir
- the directory for the log filepublic void setrollOverTime(int time)
time
- the rollover time in seconds.public void rollOver(long currentTime)
currentTime
- the current time in milliseconds.public void close()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |