| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Insert the type's description here.
Creation date: (2/27/2001 4:06:57 PM)
Field Summary | |
final static int | DEBUG_EVENT |
private static int | defaultEventClass Default eventclass to use (if no eventclass is specified) |
private static PrintWriter | defaultWriter |
final static int | ERROR_EVENT |
private final static String[] | eventClassNames |
final static int | INFO_EVENT |
(package private) static boolean | initialized |
private static String | KEYNAME |
private static boolean | stacktrace |
private static PrintWriter[] | streamtable |
Constructor Summary | |
Log() Constructor |
Method Summary | |
static void | EventLog(int eventClass, Exception exception) |
static void | EventLog(int eventClass, Object o, Exception exception) |
static void | EventLog(int eventClass, Object o, String message) |
static void | EventLog(int eventClass, String message) |
static void | EventLog(String message) |
private static String | formatMsg(String msg, int eventClass) Formats a message depending in eventClass and returns the String to print to the logging stream. |
private static PrintWriter | getWriter(int event_class) This method returns the PrintWriter to use for 'event_class'. |
private static synchronized void | initialize() |
protected static PrintWriter | parseAndCreateWriter(String fileName) This funtione creates a filewriter for a given filename. |
private static void | writeLog(String msg, int eventClass) Demultiplexes the logging request to the correct output medium by looking at its eventClass |
private static void | writeStackTrace(int eventClass, java.lang.Throwable o) Demultiplexes the logging request to the correct output medium by looking at its eventClass |
Field Detail |
public final static int DEBUG_EVENT
private static int defaultEventClass
private static PrintWriter defaultWriter
public final static int ERROR_EVENT
private final static String[] eventClassNames
public final static int INFO_EVENT
static boolean initialized
private static String KEYNAME
private static boolean stacktrace
private static PrintWriter[] streamtable
Constructor Detail |
public Log()
Method Detail |
public static void EventLog(int eventClass, Exception exception)
public static void EventLog(int eventClass, Object o, Exception exception)
public static void EventLog(int eventClass, Object o, String message)
public static void EventLog(int eventClass, String message)
public static void EventLog(String message)
private static String formatMsg(String msg, int eventClass)
private static PrintWriter getWriter(int event_class)
private static synchronized void initialize()
protected static PrintWriter parseAndCreateWriter(String fileName)
private static void writeLog(String msg, int eventClass)
private static void writeStackTrace(int eventClass, java.lang.Throwable o)
Association Links |
to Class java.io.PrintWriter
to Class java.io.PrintWriter
to Class java.lang.String
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |