Public Member Functions

alma.acs.logging.adapters.JacORBLoggerFactory Class Reference

Inherits org::jacorb::config::LoggerFactory.

List of all members.

Public Member Functions

 JacORBLoggerFactory ()
final String getLoggingBackendName ()
org.apache.avalon.framework.logger.Logger getNamedLogger (String name)
org.apache.avalon.framework.logger.Logger getNamedLogger (String name, String fileName, long maxFileSize) throws IOException
org.apache.avalon.framework.logger.Logger getNamedRootLogger (String name)
void setDefaultLogFile (String fileName, long maxLogSize) throws IOException
void configure (Configuration conf) throws ConfigurationException

Detailed Description

Logger factory that can be forced upon JacORB version 2.x via the jacorb.log.loggerFactory property. It creates Loggers through alma.acs.logging.ClientLogManager, which ensures that JacORB logs will be inserted in the central ACS log stream.

These loggers will be configured through the normal ACS logging configuration mechanisms, whereas the properties jacorb.log.default.verbosity, jacorb.logfile.append, and jacorb.log.default.log_pattern will be ignored. Note that at the moment we do use jacorb.log.default.verbosity as a workaround!

Author:
hsommer

Constructor & Destructor Documentation

alma.acs.logging.adapters.JacORBLoggerFactory.JacORBLoggerFactory (  ) 

Member Function Documentation

void alma.acs.logging.adapters.JacORBLoggerFactory.configure ( Configuration  conf  )  throws ConfigurationException
See also:
org.apache.avalon.framework.configuration.Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
final String alma.acs.logging.adapters.JacORBLoggerFactory.getLoggingBackendName (  ) 
org.apache.avalon.framework.logger.Logger alma.acs.logging.adapters.JacORBLoggerFactory.getNamedLogger ( String  name  ) 

Returns an avalon logger which wraps the JDK logger obtained from ClientLogManager.

Parameters:
name the name (e.g. "jacorb.poa") is ignored, since we treat all jacorb logging with just one logger.
See also:
org.jacorb.config.LoggerFactory.getNamedLogger(java.lang.String)

References alma.acs.logging.AcsLogger.addLoggerClass(), and alma.acs.logging.adapters.JacORBFilter.setLogLevel().

Referenced by alma.acs.logging.adapters.JacORBLoggerFactory.getNamedLogger(), and alma.acs.logging.adapters.JacORBLoggerFactory.getNamedRootLogger().

org.apache.avalon.framework.logger.Logger alma.acs.logging.adapters.JacORBLoggerFactory.getNamedLogger ( String  name,
String  fileName,
long  maxFileSize 
) throws IOException

Same as getNamedLogger(String). The file is ignored, and a respective warning message gets logged.

See also:
org.jacorb.config.LoggerFactory.getNamedLogger(java.lang.String, java.lang.String, long)

References alma.acs.logging.adapters.JacORBLoggerFactory.getNamedLogger().

org.apache.avalon.framework.logger.Logger alma.acs.logging.adapters.JacORBLoggerFactory.getNamedRootLogger ( String  name  ) 

Returns getNamedLogger(String). The distinction between root loggers and other loggers we don't need here, since the questions of console vs. file vs. remote logging are left to ACS.

See also:
org.jacorb.config.LoggerFactory.getNamedRootLogger(java.lang.String)

References alma.acs.logging.adapters.JacORBLoggerFactory.getNamedLogger().

void alma.acs.logging.adapters.JacORBLoggerFactory.setDefaultLogFile ( String  fileName,
long  maxLogSize 
) throws IOException

We ignore the log file, since ACS loggers forward to the central Log service.

See also:
org.jacorb.config.LoggerFactory.setDefaultLogFile(java.lang.String, long)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties