org.gcube.contentmanagement.util.logging
Class LoggingConfigurator

java.lang.Object
  extended by org.gcube.contentmanagement.util.logging.LoggingConfigurator

public class LoggingConfigurator
extends java.lang.Object

The Class LoggingConfigurator.


Nested Class Summary
static class LoggingConfigurator.Category
          The Enum Category.
 
Method Summary
 void createAppender(LoggingConfigurator.Category category, java.io.File basedir)
          Creates the appender.
static LoggingConfigurator getConfigurator(java.lang.String contextID)
          Gets the value of field configurator.
static org.apache.log4j.Logger getLogger(java.lang.Class<?> clazz)
          Gets the value of field logger.
 org.apache.log4j.Logger getTaskLogger(java.lang.Class<?> clazz)
          Gets the value of field taskLogger.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfigurator

public static LoggingConfigurator getConfigurator(java.lang.String contextID)
Gets the value of field configurator.

Parameters:
contextID - the task id
Returns:
the value of field configurator

getLogger

public static org.apache.log4j.Logger getLogger(java.lang.Class<?> clazz)
Gets the value of field logger.

Parameters:
clazz - the clazz
Returns:
the value of field logger

getTaskLogger

public org.apache.log4j.Logger getTaskLogger(java.lang.Class<?> clazz)
Gets the value of field taskLogger.

Parameters:
clazz - the clazz
Returns:
the value of field taskLogger

createAppender

public void createAppender(LoggingConfigurator.Category category,
                           java.io.File basedir)
                    throws java.io.IOException
Creates the appender.

Parameters:
category - the category
basedir - the basedir
Throws:
java.io.IOException - Signals that an I/O exception has occurred.