Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.configuration
Interface LogMBean

All Superinterfaces:
CommonLogMBean, ConfigurationMBean, DescriptorBean, DynamicMBean, LogFileMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean

public interface LogMBean
extends CommonLogMBean

Configures the threshold severity level and filter settings for logging output.

Specifies whether the server logging is based on a Log4j implementation or the default Java Logging APIs.

Redirects the JVM stdout and stderr output to the registered log destinations.


Field Summary

 

Fields inherited from interface weblogic.management.configuration.CommonLogMBean
STDOUT_NOID, STDOUT_STANDARD

 

Fields inherited from interface weblogic.management.configuration.LogFileMBean
DEFAULT_FILE_NAME, MAX_ROTATED_FILES, NONE, SIZE, TIME, TIME_FORMAT

 

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY

 

Method Summary
abstract  int getDomainLogBroadcasterBufferSize()
          Broadcasts log messages to the domain log in batch mode.
abstract  LogFilterMBean getDomainLogBroadcastFilter()
          The filter configuration for log events being sent to the domain log.
abstract  String getDomainLogBroadcastSeverity()
          The minimum severity of log messages going to the domain log from this server's log broadcaster.
abstract  LogFilterMBean getLogFileFilter()
          The filter configuration for the server log file.
abstract  int getLogMonitoringIntervalSecs()
          Timer interval in seconds to check the counts of messages logged during the interval.
abstract  int getLogMonitoringThrottleMessageLength()
          Cut-off length of the log message for evaluation during throttle period.
abstract  int getLogMonitoringThrottleThreshold()
          The threshold number of messages logged during the evaluation period which enables or disables the throttling.
abstract  LogFilterMBean getMemoryBufferFilter()
          Deprecated. 12.1.3.0
abstract  String getMemoryBufferSeverity()
          Deprecated. 12.1.3.0
abstract  int getMemoryBufferSize()
          Deprecated. 12.1.3.0
abstract  Properties getPlatformLoggerLevels()
          Specifies the platform logger and the associated level names set through the WebLogic Server configuration.
abstract  LogFilterMBean getStdoutFilter()
          The filter configuration for log events being sent to the standard out.
abstract  boolean isLog4jLoggingEnabled()
          Deprecated. 12.1.3.0
abstract  boolean isLogMonitoringEnabled()
          Enable or disable log monitoring.
abstract  boolean isRedirectStderrToServerLogEnabled()
          Specifies whether the stderr of the JVM in which a WebLogic Server instance runs is redirected to the WebLogic Logging system.
abstract  boolean isRedirectStdoutToServerLogEnabled()
          Specifies whether the stdout of the JVM in which a WebLogic Server instance runs is redirected to the WebLogic logging system.
abstract  boolean isServerLoggingBridgeUseParentLoggersEnabled()
          Deprecated. 12.1.3.0
abstract  void setDomainLogBroadcasterBufferSize(int bufferSize)
          Sets the size of the log message buffer for broadcasting to the domain log.
abstract  void setDomainLogBroadcastFilter(LogFilterMBean filter)
          Sets the filtering criteria for log events going to the domain log.
abstract  void setDomainLogBroadcastSeverity(String severity)
           
abstract  void setLog4jLoggingEnabled(boolean enableLog4j)
          Deprecated. 12.1.3.0
abstract  void setLogFileFilter(LogFilterMBean filter)
          Sets the value of the LogFileFilter attribute.
abstract  void setMemoryBufferFilter(LogFilterMBean filter)
          Deprecated. 12.1.3.0
abstract  void setMemoryBufferSeverity(String severity)
          Deprecated. 12.1.3.0
abstract  void setMemoryBufferSize(int size)
          Deprecated. 12.1.3.0
abstract  void setPlatformLoggerLevels(Properties props)
           
abstract  void setRedirectStderrToServerLogEnabled(boolean captureStderr)
           
abstract  void setRedirectStdoutToServerLogEnabled(boolean captureStdout)
           
abstract  void setServerLoggingBridgeAtRootLoggerEnabled(boolean value)
           
abstract  void setServerLoggingBridgeUseParentLoggersEnabled(boolean value)
          Deprecated. 12.1.3.0
abstract  void setStdoutFilter(LogFilterMBean filter)
          Sets the value of the StdoutFilter attribute.

 

Methods inherited from interface weblogic.management.configuration.CommonLogMBean
getLogFileSeverity, getLoggerSeverity, getLoggerSeverityProperties, getStdoutFormat, getStdoutSeverity, isStdoutLogStack, setLogFileSeverity, setLoggerSeverity, setLoggerSeverityProperties, setStdoutFormat, setStdoutLogStack, setStdoutSeverity

 

Methods inherited from interface weblogic.management.configuration.LogFileMBean
getBufferSizeKB, getDateFormatPattern, getFileCount, getFileMinSize, getFileName, getFileTimeSpan, getLogFileRotationDir, getRotateLogOnStartup, getRotationTime, getRotationType, isNumberOfFilesLimited, setBufferSizeKB, setDateFormatPattern, setFileCount, setFileMinSize, setFileName, setFileTimeSpan, setFileTimeSpanFactor, setLogFileRotationDir, setNumberOfFilesLimited, setRotateLogOnStartup, setRotationTime, setRotationType

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Method Detail

getLogFileFilter

LogFilterMBean getLogFileFilter()

The filter configuration for the server log file.

A filter configuration defines simple filtering rules to limit the volume of log messages written to the log file.

Returns:
The LogFilterMBean configuration for the log file.
Since:
9.0.0.0

setLogFileFilter

void setLogFileFilter(LogFilterMBean filter)

Sets the value of the LogFileFilter attribute.

Parameters:
filter - The filter configuration for filtering messages being written to the log file.
See Also:
LogMBean.getLogFileFilter()

getStdoutFilter

LogFilterMBean getStdoutFilter()

The filter configuration for log events being sent to the standard out.

Returns:
The LogFilterMBean configuration for stdout.
Since:
9.0.0.0

setStdoutFilter

void setStdoutFilter(LogFilterMBean filter)

Sets the value of the StdoutFilter attribute.

Parameters:
filter - The filter configuration for filtering messages being written to the stdout.
See Also:
LogMBean.getStdoutFilter()

getDomainLogBroadcastSeverity

String getDomainLogBroadcastSeverity()

The minimum severity of log messages going to the domain log from this server's log broadcaster. Messages with a lower severity than the specified value will not be published to the domain log.

Since:
9.0.0.0

setDomainLogBroadcastSeverity

void setDomainLogBroadcastSeverity(String severity)

getDomainLogBroadcastFilter

LogFilterMBean getDomainLogBroadcastFilter()

The filter configuration for log events being sent to the domain log.

Returns:
The LogFilterMBean configuration for broadcast to the domain log.
Since:
9.0.0.0

setDomainLogBroadcastFilter

void setDomainLogBroadcastFilter(LogFilterMBean filter)

Sets the filtering criteria for log events going to the domain log.

Parameters:
filter - The filter configuration for filtering messages being broadcast to the domain log.

getMemoryBufferSeverity

String getMemoryBufferSeverity()
Deprecated. 12.1.3.0

The minimum severity of log messages going to the memory buffer of recent log events. Messages with a lower severity than the specified value will not be cached in the buffer.

Since:
9.0.0.0

setMemoryBufferSeverity

void setMemoryBufferSeverity(String severity)
Deprecated. 12.1.3.0
Parameters:
severity -

getMemoryBufferFilter

LogFilterMBean getMemoryBufferFilter()
Deprecated. 12.1.3.0

The filter configuration for messages that are stored in the log memory buffer. By default, all log messages are cached.

Since:
9.0.0.0

setMemoryBufferFilter

void setMemoryBufferFilter(LogFilterMBean filter)
Deprecated. 12.1.3.0
Parameters:
filter -

getMemoryBufferSize

int getMemoryBufferSize()
Deprecated. 12.1.3.0

The size of the memory buffer that holds the last n log records. This is used to support viewing the most recent log record entries (tail viewing) from the WebLogic Administration Console.

Since:
9.0.0.0

setMemoryBufferSize

void setMemoryBufferSize(int size)
Deprecated. 12.1.3.0
Parameters:
size -

isLog4jLoggingEnabled

boolean isLog4jLoggingEnabled()
Deprecated. 12.1.3.0

Specifies whether the server logging is based on a Log4j implementation. By default, WebLogic logging uses an implementation based on the Java Logging APIs which are part of the JDK.

Applications that use the WebLogic Message Catalog framework or the NonCatalogLogger will not be affected by the underlying Logging implementation.

Since:
9.0.0.0

setLog4jLoggingEnabled

void setLog4jLoggingEnabled(boolean enableLog4j)
Deprecated. 12.1.3.0

Sets the value of the Log4jLoggingEnabled attribute.

See Also:
LogMBean.isLog4jLoggingEnabled()

isRedirectStdoutToServerLogEnabled

boolean isRedirectStdoutToServerLogEnabled()

Specifies whether the stdout of the JVM in which a WebLogic Server instance runs is redirected to the WebLogic logging system. When this attribute is enabled, the stdout content is published to all the registered log destinations, such as the server terminal console and log file.

Note that JVM messages are redirected asynchronously. In the event of an overload situation, these messages may be dropped. As a best practice, Oracle recommends using one of the supported logging APIs instead.

Since:
9.0.0.0

setRedirectStdoutToServerLogEnabled

void setRedirectStdoutToServerLogEnabled(boolean captureStdout)

isRedirectStderrToServerLogEnabled

boolean isRedirectStderrToServerLogEnabled()

Specifies whether the stderr of the JVM in which a WebLogic Server instance runs is redirected to the WebLogic Logging system. When this attribute is enabled, the stderr content is published to all the registered log destinations, such as the server terminal console and log file.

Note that JVM messages are redirected asynchronously. In the event of an overload situation, these messages may be dropped. As a best practice, Oracle recommends using one of the supported logging APIs instead.

Since:
9.0.0.0

setRedirectStderrToServerLogEnabled

void setRedirectStderrToServerLogEnabled(boolean captureStderr)

getDomainLogBroadcasterBufferSize

int getDomainLogBroadcasterBufferSize()

Broadcasts log messages to the domain log in batch mode.

The size of the buffer for log messages that are sent to the domain log. The buffer is maintained on the Managed Server and is broadcasted to the domain log when it is full.

If you notice performance issues due to a high rate of log messages being generated, set this value higher. This will cause the buffer to be broadcasted less frequently from the Managed Server to the domain log. In production environments, it is not recommended to set the buffer size lower than the production default of 10.

Since:
9.0.0.0

setDomainLogBroadcasterBufferSize

void setDomainLogBroadcasterBufferSize(int bufferSize)

Sets the size of the log message buffer for broadcasting to the domain log.

Parameters:
bufferSize -

isServerLoggingBridgeUseParentLoggersEnabled

boolean isServerLoggingBridgeUseParentLoggersEnabled()
Deprecated. 12.1.3.0

Specifies whether application log messages are propagated to the parent node in the Logger tree or to the WebLogic Server log by means of the Logging Bridge. By default, this attribute is disabled, which results in application log messages being propagated to the WebLogic Server log.

Note the following behavior:


setServerLoggingBridgeUseParentLoggersEnabled

void setServerLoggingBridgeUseParentLoggersEnabled(boolean value)
Deprecated. 12.1.3.0
Parameters:
value -

getPlatformLoggerLevels

Properties getPlatformLoggerLevels()

Specifies the platform logger and the associated level names set through the WebLogic Server configuration.

Note the following behavior:

Since:
12.1.3.0
See Also:
CommonLogMBean.getLoggerSeverityProperties()

setPlatformLoggerLevels

void setPlatformLoggerLevels(Properties props)

setServerLoggingBridgeAtRootLoggerEnabled

void setServerLoggingBridgeAtRootLoggerEnabled(boolean value)

isLogMonitoringEnabled

boolean isLogMonitoringEnabled()
Enable or disable log monitoring.

getLogMonitoringIntervalSecs

int getLogMonitoringIntervalSecs()
Timer interval in seconds to check the counts of messages logged during the interval.

getLogMonitoringThrottleThreshold

int getLogMonitoringThrottleThreshold()
The threshold number of messages logged during the evaluation period which enables or disables the throttling.

getLogMonitoringThrottleMessageLength

int getLogMonitoringThrottleMessageLength()
Cut-off length of the log message for evaluation during throttle period. The log message length is truncated to this length for evaluation of repeated logging events.

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09