JSlim  


com.gtcgroup.jslim
Class InternalLogger

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

final class InternalLogger
extends java.lang.Object

This class provides a set of static methods associated with logging of JSlim generated messages.

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 LogRecordsVO logRecordsVO
          A collection of LogRecordVO objects.
 
Constructor Summary
private InternalLogger()
          Constructor.
 
Method Summary
(package private) static void addLogRecordVO(java.lang.String strExecuteMethod, java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Adds a LogRecordVO to the collection.
private static void initializeLogRecordsVO()
           
(package private) static void logDocumentError(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 620.
(package private) static void logEnter(java.lang.String strSourceClass, java.lang.String strSourceMethod)
          Level - 400.
(package private) static int logEntriesCached(int intErrors)
          Writes log records cached during descriptor document loading.
(package private) static void logExit(java.lang.String strSourceClass, java.lang.String strSourceMethod)
          Level - 400.
(package private) static void logJSlimException(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage, java.lang.Throwable throwable)
          Level - 640.
(package private) static void logJSlimSQLException(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage, java.sql.SQLException sE)
          Level - 640.
(package private) static void logJSlimWarning(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 620.
(package private) static void logLoadInfo(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 600.
(package private) static void logServiceInfo(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 600.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logRecordsVO

private static LogRecordsVO logRecordsVO
A collection of LogRecordVO objects.

Constructor Detail

InternalLogger

private InternalLogger()
Constructor.

Method Detail

addLogRecordVO

static final void addLogRecordVO(java.lang.String strExecuteMethod,
                                 java.lang.String strSourceClass,
                                 java.lang.String strSourceMethod,
                                 java.lang.String strMessage)
Adds a LogRecordVO to the collection.

Parameters:
strExecuteMethod - The method caching the log record.
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The validation error message.

initializeLogRecordsVO

private static final void initializeLogRecordsVO()

logJSlimException

static final void logJSlimException(java.lang.String strSourceClass,
                                    java.lang.String strSourceMethod,
                                    java.lang.String strMessage,
                                    java.lang.Throwable throwable)
Level - 640.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.
throwable - The originating exception.

logJSlimSQLException

static final void logJSlimSQLException(java.lang.String strSourceClass,
                                       java.lang.String strSourceMethod,
                                       java.lang.String strMessage,
                                       java.sql.SQLException sE)
Level - 640.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.
sE - The originating exception.

logJSlimWarning

static final void logJSlimWarning(java.lang.String strSourceClass,
                                  java.lang.String strSourceMethod,
                                  java.lang.String strMessage)
Level - 620.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logDocumentError

static final void logDocumentError(java.lang.String strSourceClass,
                                   java.lang.String strSourceMethod,
                                   java.lang.String strMessage)
Level - 620.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logServiceInfo

static final void logServiceInfo(java.lang.String strSourceClass,
                                 java.lang.String strSourceMethod,
                                 java.lang.String strMessage)
Level - 600.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logLoadInfo

static final void logLoadInfo(java.lang.String strSourceClass,
                              java.lang.String strSourceMethod,
                              java.lang.String strMessage)
Level - 600.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logEnter

static final void logEnter(java.lang.String strSourceClass,
                           java.lang.String strSourceMethod)
Level - 400.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.

logExit

static final void logExit(java.lang.String strSourceClass,
                          java.lang.String strSourceMethod)
Level - 400.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.

logEntriesCached

static final int logEntriesCached(int intErrors)
Writes log records cached during descriptor document loading. After loading has completed, and (perhaps) a non-default Logger initialized, the cached log records are logged.

Parameters:
intErrors - The number of errors (vs. warnings) occuring during validation.
Returns:
The number of cached records logged.

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.