com.prolixtech.utils
public class JavaLogger extends java.lang.Object implements MboxLogger
Modifier | Constructor and Description |
---|---|
protected |
JavaLogger() |
Modifier and Type | Method and Description |
---|---|
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
|
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