org.jmonks.batch.framework.config
Class FrameworkConfig.FrameworkLoggingConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.FrameworkConfig.FrameworkLoggingConfig
Enclosing class:
FrameworkConfig

public class FrameworkConfig.FrameworkLoggingConfig
extends java.lang.Object

FrameworkLoggingConfig class holds configuration required to enable the framework logging by LoggingManager. This configuration would be like the directory needs to write job log files and logging level of the framework logs & job logs and base package name to be used to create the logging handlers. This class can be accessed by all the classes in the framework but cannot be instantiated outside of this class.

This class represents the following information for the framework configration file

      <framework-logging-config framework-logging-level="DEBUG" job-logging-direcotry="/batchserver/logs" 
                                      job-base-package-name="com.mycompany.batch" job-logging-level="DEBUG"/>
  


Method Summary
 java.lang.String getFrameworkLoggingLevel()
          Returns the framework log level to use for the logging.
 java.lang.String getJobBasePackageName()
          Returns the base package name to be used for the logging.
 java.lang.String getJobLoggingDirecotry()
          Returns the job logging directory name, where to all the job logs needs to be written.
 java.lang.String getJobLoggingLevel()
          Returns the job log level to use for the logging.
 java.lang.String toString()
           Returns the string representation of FrameworkLoggingConfig class in the format
{FrameworkLoggingConfig [jobLoggingDirectory = value] [frameworkLoggingLevel = value] [jobBasePackageName = value] [jobLoggingLevel = value]}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getJobLoggingDirecotry

public java.lang.String getJobLoggingDirecotry()
Returns the job logging directory name, where to all the job logs needs to be written.

Returns:
Returns the logging directory name.

getFrameworkLoggingLevel

public java.lang.String getFrameworkLoggingLevel()
Returns the framework log level to use for the logging.

Returns:
Returns the log level.

getJobLoggingLevel

public java.lang.String getJobLoggingLevel()
Returns the job log level to use for the logging.

Returns:
Returns the log level.

getJobBasePackageName

public java.lang.String getJobBasePackageName()
Returns the base package name to be used for the logging. This base package is job base package like com.mycompany.batch

Returns:
Returns the jobs base package name.

toString

public java.lang.String toString()

Returns the string representation of FrameworkLoggingConfig class in the format
{FrameworkLoggingConfig [jobLoggingDirectory = value] [frameworkLoggingLevel = value] [jobBasePackageName = value] [jobLoggingLevel = value]}

Returns:
Returns the string representation of FrameworkLoggingConfig.