NonCatalogLog Class

com.beasys.commerce.util
NonCatalogLog Class

public class NonCatalogLog

    extends DefaultLog

Generic class for logging to your server. The default implementation logs to the WebLogic server log facility. You can subclass the methods in this class to log other devices.

Related Topics

Logger
NonCatalogLogger


Hierarchy
Object
  DefaultLog
    NonCatalogLog
All Implemented Interfaces

Log

Field Summary

protected final Map
logMap
Map of subsystem names (app names) to NonCatalogLogger classes
   
Fields from  com.beasys.commerce.util.DefaultLog
COMMA, DEFAULT_APP_NAME, minimumLevel, QUOTE, showDebug, showDeprecated, SPACE
 
Fields from interface com.beasys.commerce.util.Log
LOG_DEBUG, LOG_DEPRECATED, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_SECURITY, LOG_WARNING
 

Constructor Summary

NonCatalogLog()

Default constructor.
 

Method Summary

protected String
assembleMsg(int aLevel, String anAppName, String aMsg)
Assemble the message into the expected output.
protected NonCatalogLogger
getLoggerForApp(String anAppName)
Get (or create) a logger for the specified app name (subsystem)
protected void
logOutput(int aLevel, String anAppName, String aMsg, Throwable anException)
Log the output.
public void
setMinimumLevel(int aLevel)
Deprecated - not used in this implementation
 
Methods from  com.beasys.commerce.util.DefaultLog
debug, deprecated, getMinimumLevel, getShowDebug, getShowDeprecated, info, info, log, log, log, log, setShowDebug, setShowDeprecated, textForLevel
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.beasys.commerce.util.Log
debug, deprecated, getMinimumLevel, getShowDebug, getShowDeprecated, info, info, log, log, log, log, setMinimumLevel, setShowDebug, setShowDeprecated
 

Field Detail

logMap

protected final Map logMap
Map of subsystem names (app names) to NonCatalogLogger classes

 

Constructor Detail

NonCatalogLog

public NonCatalogLog()
Default constructor.
 

Method Detail

assembleMsg(int, String, String) Method

protected String assembleMsg(int aLevel, 
                             String anAppName, 
                             String aMsg)
Assemble the message into the expected output.

Overrides
DefaultLog.assembleMsg(int, String, String)

Returns

String

getLoggerForApp(String) Method

protected NonCatalogLogger getLoggerForApp(String anAppName)
Get (or create) a logger for the specified app name (subsystem)


logOutput(int, String, String, Throwable) Method

protected void logOutput(int aLevel, 
                         String anAppName, 
                         String aMsg, 
                         Throwable anException)
Log the output. Override default implementation to write to the log.

Overrides
DefaultLog.logOutput(int, String, String, Throwable)

setMinimumLevel(int) Method

DEPRECATED does nothing but log a deprecated message. Use domain log filters.

public void setMinimumLevel(int aLevel)
Deprecated - not used in this implementation

Overrides
DefaultLog.setMinimumLevel(int)