JSlim  


com.gtcgroup.jslim
Class _Log

java.lang.Object
  extended bycom.gtcgroup.jslim._Log

final class _Log
extends java.lang.Object

This utility class manages logging.

Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.

Since:
v. 1.0
Author:
MDT (MarvinToll@gtcGroup.com)

Field Summary
private static boolean blnFileHandlerAppendMode
          Log related variable.
private static java.util.logging.ConsoleHandler consoleHandler
          Log related variable.
private static java.util.logging.FileHandler fileHandler
          Log related variable.
private static java.util.logging.Filter filterConsole
          Log related variable.
private static java.util.logging.Filter filterFile
          Log related variable.
private static java.util.logging.Filter filterLogger
          Log related variable.
private static java.util.logging.Formatter formatConsole
          Log related variable.
private static java.util.logging.Formatter formatFile
          Log related variable.
private static int intConsoleLevel
          Log related variable.
private static int intFileHandlerOutputfileBytelimit
          Log related variable.
private static int intFileHandlerOutputfilesLimit
          Log related variable.
private static int intFileLevel
          Log related variable.
private static int intLoggerLevel
          Log related variable.
private static java.lang.String strConsoleHandlerFilter
          Log related variable.
private static java.lang.String strConsoleHandlerFormatter
          Log related variable.
private static java.lang.String strFileHandlerFilter
          Log related variable.
private static java.lang.String strFileHandlerFormatter
          Log related variable.
private static java.lang.String strFileHandlerOutputfilePattern
          Log related variable.
private static java.lang.String strLoggerFilter
          Log related variable.
private static java.lang.String strLogToConsole
          Log related variable.
private static java.lang.String strLogToFile
          Log related variable.
 
Constructor Summary
private _Log()
          Constructor.
 
Method Summary
(package private) static java.util.logging.Logger configureLogger(ServiceKeyVO serviceKeyVO)
          Returns a configured Logger as specified in a descriptor document.
private static java.util.logging.Level determineLevel(int intLevel)
           
private static void initializeLoggingVariables(ServiceKeyVO serviceKeyVO)
           
private static void reThrowNewInstanceLoadException(ServicesSuperVO serviceSuperVO, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consoleHandler

private static final java.util.logging.ConsoleHandler consoleHandler
Log related variable.


fileHandler

private static java.util.logging.FileHandler fileHandler
Log related variable.


strLogToConsole

private static java.lang.String strLogToConsole
Log related variable.


strLogToFile

private static java.lang.String strLogToFile
Log related variable.


intLoggerLevel

private static int intLoggerLevel
Log related variable.


strLoggerFilter

private static java.lang.String strLoggerFilter
Log related variable.


filterLogger

private static java.util.logging.Filter filterLogger
Log related variable.


intConsoleLevel

private static int intConsoleLevel
Log related variable.


strConsoleHandlerFilter

private static java.lang.String strConsoleHandlerFilter
Log related variable.


filterConsole

private static java.util.logging.Filter filterConsole
Log related variable.


strConsoleHandlerFormatter

private static java.lang.String strConsoleHandlerFormatter
Log related variable.


formatConsole

private static java.util.logging.Formatter formatConsole
Log related variable.


intFileLevel

private static int intFileLevel
Log related variable.


strFileHandlerFilter

private static java.lang.String strFileHandlerFilter
Log related variable.


filterFile

private static java.util.logging.Filter filterFile
Log related variable.


strFileHandlerFormatter

private static java.lang.String strFileHandlerFormatter
Log related variable.


formatFile

private static java.util.logging.Formatter formatFile
Log related variable.


strFileHandlerOutputfilePattern

private static java.lang.String strFileHandlerOutputfilePattern
Log related variable.


intFileHandlerOutputfileBytelimit

private static int intFileHandlerOutputfileBytelimit
Log related variable.


intFileHandlerOutputfilesLimit

private static int intFileHandlerOutputfilesLimit
Log related variable.


blnFileHandlerAppendMode

private static boolean blnFileHandlerAppendMode
Log related variable.

Constructor Detail

_Log

private _Log()
Constructor.

Method Detail

configureLogger

static final java.util.logging.Logger configureLogger(ServiceKeyVO serviceKeyVO)
                                               throws JSlimException
Returns a configured Logger as specified in a descriptor document.

Parameters:
serviceKeyVO - A portion of a descriptor document representing one service.
Returns:
A configured Logger.
Throws:
JSlimException - if an exception encountered.

determineLevel

private static final java.util.logging.Level determineLevel(int intLevel)

initializeLoggingVariables

private static final void initializeLoggingVariables(ServiceKeyVO serviceKeyVO)
                                              throws JSlimException
Throws:
JSlimException

reThrowNewInstanceLoadException

private static final void reThrowNewInstanceLoadException(ServicesSuperVO serviceSuperVO,
                                                          java.lang.Exception e)
                                                   throws JSlimException
Throws:
JSlimException

JSlim  


Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.