FileDocCategorySizeDatePackage
DeploymentAuditLogHandler.javaAPI DocGlassfish v2 API4129Fri May 04 22:35:44 BST 2007com.sun.enterprise.server.logging

DeploymentAuditLogHandler

public class DeploymentAuditLogHandler extends FileandSyslogHandler
Writes deployment audit records.

This class extends FileandSyslogHandler because it does nearly the same function, except to a separate deployment audit file.

Fields Summary
private static final String
CONFIGURED_LEVEL_PROPERTY_NAME
private static final String
CONFIGURED_LEVEL_PROPERTY_DEFAULT
private static final DeploymentAuditLogHandler
thisInstance
private String
logFileName
Constructors Summary
protected DeploymentAuditLogHandler()
Creates a new instance of DeploymentAuditLogHandler, bypassing logic in the superclass constructor that creates the AMXLoggingHook.

    
Methods Summary
protected AMXLoggingHookcreateAMXLoggingHook()

        return null;
    
public static java.util.logging.LevelgetConfiguredLevel()
Returns the logging Level setting for the deployment auditing logger.

This method uses a system property rather than a normal logging level setting from domain.xml to avoid changing the domain.xml layout (due to schedule issues). Later on this could be converted, time permitting.

return
the logging Level to be used for deployment logging; default if OFF

        Level result = Level.OFF;
        try {
            result = Level.parse(System.getProperty(CONFIGURED_LEVEL_PROPERTY_NAME, CONFIGURED_LEVEL_PROPERTY_DEFAULT));
        } catch (Throwable thr) {
            // Use the default OFF value but log the problem.
            Logger logger = LogDomains.getLogger(LogDomains.DPL_LOGGER);
            logger.log(Level.WARNING, thr.getLocalizedMessage(), thr);
        }
        return result;
    
public static synchronized com.sun.enterprise.server.logging.DeploymentAuditLogHandlergetInstance()

 

          
        return thisInstance;
    
protected java.lang.StringgetLogFileName()

        return logFileName;