pt.digitalis.log
Class Logger

java.lang.Object
  extended by pt.digitalis.log.Logger

public class Logger
extends Object

Simple centralizing Logger class. This class instantiates a Logger for all logging needs.

Author:
Pedro Viegas pviegas@digitalis.pt

Constructor Summary
Logger()
           
 
Method Summary
static ILogWrapper getLogger()
          Gets the logger object
static ILogWrapper getLogger(LogLevel level)
          Gets the logger object and sets the logLevel
static ILogWrapper getLogger(String loggerName, LogLevel level)
          Gets the logger object and sets the logLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

getLogger

public static ILogWrapper getLogger()
Gets the logger object

Returns:
the logger

getLogger

public static ILogWrapper getLogger(LogLevel level)
Gets the logger object and sets the logLevel

Parameters:
level - the log level to set
Returns:
the logger

getLogger

public static ILogWrapper getLogger(String loggerName,
                                    LogLevel level)
Gets the logger object and sets the logLevel

Parameters:
loggerName - the name of the logger
level - the log level to set
Returns:
the logger


Copyright © 2010 Digitalis Informática Lda. All Rights Reserved.