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

Part Number E27170-01

weblogic.management.configuration
Interface CommonLogMBean

All Superinterfaces:
ConfigurationMBean, DescriptorBean, DynamicMBean, LogFileMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean
All Known Subinterfaces:
LogMBean

public interface CommonLogMBean
extends LogFileMBean

Configures the basic configuration for the logging system.


Field Summary
static String STDOUT_NOID
          Format of messages logged to the console in WLS 6.
static String STDOUT_STANDARD
          Default format of messages logged to the console
 
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
 String getLogFileSeverity()
          The minimum severity of log messages going to the server log file.
 String getLoggerSeverity()
          The minimum severity of log messages going to all log destinations.
 Properties getLoggerSeverityProperties()
          The configuration of the different logger severities keyed by name.
 String getStdoutFormat()
          The output format to use when logging to the console.
 String getStdoutSeverity()
          The minimum severity of log messages going to the standard out.
 boolean isStdoutLogStack()
          Specifies whether to dump stack traces to the console when included in logged message.
 void setLogFileSeverity(String severity)
           
 void setLoggerSeverity(String severity)
           
 void setLoggerSeverityProperties(Properties props)
           
 void setStdoutFormat(String format)
          Sets the value of the StdoutFormat attribute.
 void setStdoutLogStack(boolean stack)
          Sets the value of the StdoutLogStack attribute.
 void setStdoutSeverity(String severity)
           
 
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
 

Field Detail

STDOUT_STANDARD

static final String STDOUT_STANDARD
Default format of messages logged to the console

See Also:
Constant Field Values

STDOUT_NOID

static final String STDOUT_NOID
Format of messages logged to the console in WLS 6. Does not include message id in output.

See Also:
Constant Field Values
Method Detail

getLoggerSeverity

String getLoggerSeverity()

The minimum severity of log messages going to all log destinations. By default all messages are published.

Changes take effect after you redeploy the module or restart the server.
Default Value:
weblogic.logging.Severities.INFO_TEXT
Valid Values:
weblogic.logging.Severities.TRACE_TEXT, weblogic.logging.Severities.DEBUG_TEXT, weblogic.logging.Severities.INFO_TEXT, weblogic.logging.Severities.NOTICE_TEXT, weblogic.logging.Severities.WARNING_TEXT

setLoggerSeverity

void setLoggerSeverity(String severity)

getLoggerSeverityProperties

Properties getLoggerSeverityProperties()
The configuration of the different logger severities keyed by name. The values are one of the predefined Severity strings namely Emergency, Alert, Critical, Error, Warning, Notice, Info, Debug, Trace.

Changes take effect after you redeploy the module or restart the server.

setLoggerSeverityProperties

void setLoggerSeverityProperties(Properties props)

getLogFileSeverity

String getLogFileSeverity()

The minimum severity of log messages going to the server log file. By default all messages go to the log file.

Default Value:
weblogic.logging.Severities.TRACE_TEXT
Valid Values:
weblogic.logging.Severities.TRACE_TEXT, weblogic.logging.Severities.DEBUG_TEXT, weblogic.logging.Severities.INFO_TEXT, weblogic.logging.Severities.NOTICE_TEXT, weblogic.logging.Severities.WARNING_TEXT

setLogFileSeverity

void setLogFileSeverity(String severity)

getStdoutSeverity

String getStdoutSeverity()

The minimum severity of log messages going to the standard out. Messages with a lower severity than the specified value will not be published to standard out.

Default Value:
weblogic.logging.Severities.NOTICE_TEXT
Valid Values:
weblogic.logging.Severities.TRACE_TEXT, weblogic.logging.Severities.DEBUG_TEXT, weblogic.logging.Severities.INFO_TEXT, weblogic.logging.Severities.WARNING_TEXT, weblogic.logging.Severities.ERROR_TEXT, weblogic.logging.Severities.NOTICE_TEXT, weblogic.logging.Severities.CRITICAL_TEXT, weblogic.logging.Severities.ALERT_TEXT, weblogic.logging.Severities.EMERGENCY_TEXT, weblogic.logging.Severities.OFF_TEXT

setStdoutSeverity

void setStdoutSeverity(String severity)

getStdoutFormat

String getStdoutFormat()

The output format to use when logging to the console.

Returns:
The stdoutFormat value
Default Value:
CommonLogMBean.STDOUT_STANDARD
Valid Values:
CommonLogMBean.STDOUT_STANDARD,LogMBean.STDOUT_NOID

setStdoutFormat

void setStdoutFormat(String format)

Sets the value of the StdoutFormat attribute.

Parameters:
format - The new stdoutFormat value
See Also:
CommonLogMBean.getStdoutFormat()

isStdoutLogStack

boolean isStdoutLogStack()

Specifies whether to dump stack traces to the console when included in logged message.

Returns:
The stdoutLogStack value
Default Value:
true

setStdoutLogStack

void setStdoutLogStack(boolean stack)

Sets the value of the StdoutLogStack attribute.

Parameters:
stack - The new stdoutLogStack value
See Also:
CommonLogMBean.isStdoutLogStack()

Copyright 1996, 2013, 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.1.2)

Part Number E27170-01