|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perforce.api.EventLog
This class controls an event log. A set number of log entries are kept in memory, while all log entries are sent to a log file.
Constructor Summary | |
EventLog()
Default, no-argument constructor. |
|
EventLog(String title)
Constructor that accepts the title for this. |
|
EventLog(String title,
String filename)
|
Method Summary | |
static void |
commonLog(String event)
Logs an event to the common log. |
static void |
commonLog(String event,
String level)
Logs an event to the common log. |
static void |
commonLog(String event,
String level,
boolean encode)
|
String |
getFileName()
|
Enumeration |
getLog()
Returns an Enumeration that contains all the events in the log. |
int |
getSize()
|
String |
getTitle()
Gets the title of the log. |
void |
log(String event)
|
void |
log(String event,
String level)
|
void |
log(String event,
String level,
boolean encode)
Logs an event. |
static void |
printLog(EventLog elog,
PrintWriter out,
String format)
|
static void |
printLog(PrintWriter out,
String format)
|
void |
setSize(int size)
Sets the size of the log. |
void |
setTitle(String title)
Sets the title for this log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventLog()
Vector
public EventLog(String title)
title
- The title for this log.public EventLog(String title, String filename)
Method Detail |
public static void commonLog(String event)
event
- The event to be logged.public static void commonLog(String event, String level)
event
- The event to be logged.public static void commonLog(String event, String level, boolean encode)
public String getFileName()
public Enumeration getLog()
public int getSize()
public String getTitle()
public void log(String event)
public void log(String event, String level)
public void log(String event, String level, boolean encode)
event
- The event to be logged.public static void printLog(EventLog elog, PrintWriter out, String format)
public static void printLog(PrintWriter out, String format)
public void setSize(int size)
size
- The number of lines to keep in the log.public void setTitle(String title)
title
- The title of the log.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |