com.prolixtech.utils
Class NullLogger

java.lang.Object
  extended by com.prolixtech.utils.NullLogger
All Implemented Interfaces:
MboxLogger
Direct Known Subclasses:
SingletonLogger

public class NullLogger
extends java.lang.Object
implements MboxLogger

Author:
Constantinos Michael

Constructor Summary
NullLogger()
           
 
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)
           
 java.util.logging.Logger getLogger()
           
 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()
           
 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)
           
 void warning(java.lang.String msg)
          Shortcut to submit a log message at the level WARNING
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger()
Method Detail

baloon

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

getLogger

public java.util.logging.Logger getLogger()

log

public void log(java.util.logging.Level vel,
                java.lang.String msg)
Description copied from interface: MboxLogger
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:
Level

fine

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

severe

public void severe(java.lang.String msg)
Description copied from interface: MboxLogger
Shortcut to submit a log message at the level SEVERE

Specified by:
severe in interface MboxLogger
Parameters:
msg - the message to submit

warning

public void warning(java.lang.String msg)
Description copied from interface: MboxLogger
Shortcut to submit a log message at the level WARNING

Specified by:
warning in interface MboxLogger
Parameters:
msg - the message to submit

info

public void info(java.lang.String msg)
Description copied from interface: MboxLogger
Shortcut to submit a log message at the level INFO

Specified by:
info in interface MboxLogger
Parameters:
msg - the message to submit

sql

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

http

public void http(Request req,
                 java.lang.String msg)
Description copied from interface: MboxLogger
Specialized submit for HTTP messages

Specified by:
http in interface MboxLogger
msg - the message to submit

disableBaloons

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

exception

public void exception(java.util.logging.Level x,
                      java.lang.String msg,
                      java.lang.Exception e)
Specified by:
exception in interface MboxLogger

exception

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

Instance

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