com.prolixtech.utils

Class NullLogger

Implemented Interfaces:
MboxLogger
Known Direct Subclasses:
SingletonLogger

public class NullLogger
extends Object
implements MboxLogger

Method Summary

static MboxLogger
Instance()
void
baloon(String msg, String title)
void
disableBaloons()
void
exception(Level x, String msg, Exception e)
void
exception(String msg, Exception e)
void
fine(String msg)
Logger
getLogger()
void
http(Request req, String msg)
Specialized submit for HTTP messages
void
info(String msg)
Shortcut to submit a log message at the level INFO
void
log(Level vel, String msg)
The main logging function is set by default to output to the console.
void
severe(String msg)
Shortcut to submit a log message at the level SEVERE
void
sql(String msg)
void
warning(String msg)
Shortcut to submit a log message at the level WARNING

Method Details

Instance

public static MboxLogger Instance()
Returns:
the a new instance of the logger.

baloon

public void baloon(String msg,
                   String title)
Specified by:
baloon in interface MboxLogger

disableBaloons

public void disableBaloons()
Specified by:
disableBaloons in interface MboxLogger

exception

public void exception(Level x,
                      String msg,
                      Exception e)
Specified by:
exception in interface MboxLogger

exception

public void exception(String msg,
                      Exception e)
Specified by:
exception in interface MboxLogger

fine

public void fine(String msg)
Specified by:
fine in interface MboxLogger

getLogger

public Logger getLogger()

http

public void http(Request req,
                 String msg)
Specialized submit for HTTP messages
Specified by:
http in interface MboxLogger
Parameters:
msg - the message to submit

info

public void info(String msg)
Shortcut to submit a log message at the level INFO
Specified by:
info in interface MboxLogger
Parameters:
msg - the message to submit

log

public void log(Level vel,
                String msg)
The main logging function is set by default to output to the console. If we require better logging in the future, perhaps a number of streams will be made. The default operation prints the last function called (gets it through a stacktrace) the message, the time.
Specified by:
log in interface MboxLogger
Parameters:
vel - the level of the message to log.
msg - the message to log.
See Also:
java.util.logging.Level

severe

public void severe(String msg)
Shortcut to submit a log message at the level SEVERE
Specified by:
severe in interface MboxLogger
Parameters:
msg - the message to submit

sql

public void sql(String msg)
Specified by:
sql in interface MboxLogger

warning

public void warning(String msg)
Shortcut to submit a log message at the level WARNING
Specified by:
warning in interface MboxLogger
Parameters:
msg - the message to submit