org.codeforamerica.open311.internals.logging
Class LogManager

java.lang.Object
  extended by org.codeforamerica.open311.internals.logging.LogManager

public class LogManager
extends Object

Manages all the login related operations. Singleton class.

Author:
Santiago MunĂ­n

Method Summary
 void activate(Object objectToBeLogged)
          Activates the logging for a concrete wrapper.
 void disable(Object loggedObject)
          Disables the logging for a concrete wrapper.
static LogManager getInstance()
          Returns the unique instance of the class.
 void logError(Object messageCreator, String message)
          Logs any problem.
 void logInfo(Object messageCreator, String message)
          Logs a non-critical event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogManager getInstance()
Returns the unique instance of the class.

Returns:
unique instance of the class.

activate

public void activate(Object objectToBeLogged)
Activates the logging for a concrete wrapper.

Parameters:
objectToBeLogged - Object to be logged.

disable

public void disable(Object loggedObject)
Disables the logging for a concrete wrapper.

Parameters:
loggedObject - Object which logging will be disabled.

logInfo

public void logInfo(Object messageCreator,
                    String message)
Logs a non-critical event.

Parameters:
messageCreator - origin of the message.
message - Event message.

logError

public void logError(Object messageCreator,
                     String message)
Logs any problem.

Parameters:
messageCreator - origin of the message.
message - Event message.


Copyright © 2013 Code for America. All Rights Reserved.