|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.prolixtech.utils.JavaLogger
public class JavaLogger
This class provides a single logging utility used for debugging purposes. It delegates most of its work to the java logging system, however it is made a singleton here so that it can be used throughout the application.
Constructor Summary | |
---|---|
protected |
JavaLogger()
|
Method Summary | |
---|---|
void |
baloon(java.lang.String msg,
java.lang.String title)
|
void |
disableBaloons()
|
void |
exception(java.util.logging.Level x,
java.lang.String msg,
java.lang.Exception e)
|
void |
exception(java.lang.String msg,
java.lang.Exception e)
|
void |
fine(java.lang.String msg)
Shortcut to submit a log message at the level FINE |
java.util.logging.Logger |
getLogger()
For manual submission directly to the logger |
void |
http(Request req,
java.lang.String msg)
Specialized submit for HTTP messages |
void |
info(java.lang.String msg)
Shortcut to submit a log message at the level INFO |
static MboxLogger |
Instance()
Pertains to the Singleton DESIGN PATTERN. |
void |
log(java.util.logging.Level vel,
java.lang.String msg)
The main logging function is set by default to output to the console. |
void |
severe(java.lang.String msg)
Shortcut to submit a log message at the level SEVERE |
void |
sql(java.lang.String msg)
Specialized submit for SQL messages |
void |
warning(java.lang.String msg)
Shortcut to submit a log message at the level WARNING |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JavaLogger()
Method Detail |
---|
public static MboxLogger Instance()
public java.util.logging.Logger getLogger()
public void log(java.util.logging.Level vel, java.lang.String msg)
log
in interface MboxLogger
vel
- the level of the message to log.msg
- the message to log.Level
public void fine(java.lang.String msg)
fine
in interface MboxLogger
msg
- the message to submitpublic void severe(java.lang.String msg)
severe
in interface MboxLogger
msg
- the message to submitpublic void warning(java.lang.String msg)
warning
in interface MboxLogger
msg
- the message to submitpublic void info(java.lang.String msg)
info
in interface MboxLogger
msg
- the message to submitpublic void sql(java.lang.String msg)
sql
in interface MboxLogger
msg
- the message to submitpublic void http(Request req, java.lang.String msg)
http
in interface MboxLogger
msg
- the message to submitpublic void disableBaloons()
disableBaloons
in interface MboxLogger
public void exception(java.util.logging.Level x, java.lang.String msg, java.lang.Exception e)
exception
in interface MboxLogger
public void exception(java.lang.String msg, java.lang.Exception e)
exception
in interface MboxLogger
public void baloon(java.lang.String msg, java.lang.String title)
baloon
in interface MboxLogger
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |