FileDocCategorySizeDatePackage
Logging.javaAPI DocGlassfish v2 API4238Fri May 04 22:30:50 BST 2007com.sun.appserv.management.ext.logging

Logging

public interface Logging implements LogFileAccess, LogRecordEmitter, LogQuery, LogAnalyzer, com.sun.appserv.management.base.AMX
Supports accessing logging information in multiple ways. The following are supported:
  • Emission of pseudo real-time JMX Notifications when a log record is created--see {@link LogRecordEmitter}
  • Access to existing log file contents--see {@link LogFileAccess}
  • Querying for log entries--see {@link LogQuery}

A Logging always has j2eeType={@link XTypes#LOGGING} and the same name as the server it represents.

since
AS 9.0
see
com.sun.appserv.management.monitor.ServerRootMonitor#getLogging

Fields Summary
public static final String
J2EE_TYPE
Constructors Summary
Methods Summary
public java.lang.StringgetModuleLogLevel(java.lang.String moduleName)
Gets the log level of the Logger for the specified module, which may or may not be the same as that found in the configuration. This capability is subject to removal, due to the confusion caused by configuration settings not matching.

param
moduleName a module name as specified in {@link LogModuleNames}
see
com.sun.appserv.management.config.ModuleLogLevelsConfig

public voidsetModuleLogLevel(java.lang.String module, java.lang.String level)
Sets the log level of the Logger for the specified module. This operation will not effect a change to the corresponding loggin configuration for that module. This capability is subject to removal, due to the confusion caused by configuration settings not matching.

param
module a module name as specified in {@link LogModuleNames}.
param
level a log level
see
com.sun.appserv.management.config.ModuleLogLevelsConfig

public voidtestEmitLogMessage(java.lang.String level, java.lang.String message)
This method may be used to verify that your Logging listener is working correctly.

param
level the log level of the log message.
param
message the message to be placed in Notif.getMessage()