net.sourceforge.jinit
Class LoggingConfigurator

java.lang.Object
  extended by net.sourceforge.jinit.LoggingConfigurator

public class LoggingConfigurator
extends Object

Configures the internal logging using Log4J based on the given properties.

Author:
Trevor Miller

Field Summary
static String LOGGING_APPENDER_PREFIX
          LOGGING_APPENDER_PREFIX = jinit.logging.appender
static String LOGGING_FILENAME_PREFIX
          LOGGING_FILENAME_PREFIX = jinit.logging.fileappender.filename
static String LOGGING_LAYOUT_PREFIX
          LOGGING_LAYOUT_PREFIX = jinit.logging.layout
static String LOGGING_LEVEL_PREFIX
          LOGGING_LEVEL_PREFIX = jinit.logging.level
 
Method Summary
static org.apache.log4j.Logger init(Properties properties)
          Creates a logger for the specified properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGING_LEVEL_PREFIX

public static String LOGGING_LEVEL_PREFIX
LOGGING_LEVEL_PREFIX = jinit.logging.level


LOGGING_LAYOUT_PREFIX

public static String LOGGING_LAYOUT_PREFIX
LOGGING_LAYOUT_PREFIX = jinit.logging.layout


LOGGING_APPENDER_PREFIX

public static String LOGGING_APPENDER_PREFIX
LOGGING_APPENDER_PREFIX = jinit.logging.appender


LOGGING_FILENAME_PREFIX

public static String LOGGING_FILENAME_PREFIX
LOGGING_FILENAME_PREFIX = jinit.logging.fileappender.filename

Method Detail

init

public static org.apache.log4j.Logger init(Properties properties)
                                    throws Exception
Creates a logger for the specified properties.

Parameters:
properties - THe properties to customize logging
Returns:
A Logger for the given properties
Throws:
Exception - If the logging cannot be configured


Copyright © 2005 JInit Project. All Rights Reserved.