|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 MBean API Reference 11g Release 1 (10.3.1) Part Number E13945-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogMBean
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.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX."
Method Summary | |
---|---|
int |
getDomainLogBroadcasterBufferSize()
Broadcasts log messages to the domain log in batch mode. |
LogFilterMBean |
getDomainLogBroadcastFilter()
The filter configuration for log events being sent to the domain log. |
String |
getDomainLogBroadcastSeverity()
The minimum severity of log messages going to the domain log from this server's log broadcaster. |
LogFilterMBean |
getLogFileFilter()
The filter configuration for the server log file. |
LogFilterMBean |
getMemoryBufferFilter()
The filter configuration for messages that are stored in the log memory buffer. |
String |
getMemoryBufferSeverity()
The minimum severity of log messages going to the memory buffer of recent log events. |
int |
getMemoryBufferSize()
The size of the memory buffer that holds the last n log records. |
LogFilterMBean |
getStdoutFilter()
The filter configuration for log events being sent to the standard out. |
boolean |
isLog4jLoggingEnabled()
Specifies whether the server logging is based on a Log4j implementation. |
boolean |
isRedirectStderrToServerLogEnabled()
When enabled, this redirects the stderr of the JVM in which a WebLogic Server instance runs, to the WebLogic Logging system. |
boolean |
isRedirectStdoutToServerLogEnabled()
When enabled, this redirects the stdout of the JVM in which a WebLogic Server instance runs, to the WebLogic logging system. |
void |
setDomainLogBroadcasterBufferSize(int bufferSize)
Sets the size of the log message buffer for broadcasting to the domain log. |
void |
setDomainLogBroadcastFilter(LogFilterMBean filter)
Sets the filtering criteria for log events going to the domain log. |
void |
setDomainLogBroadcastSeverity(String severity)
|
void |
setLog4jLoggingEnabled(boolean enableLog4j)
Sets the value of the Log4jLoggingEnabled attribute. |
void |
setLogFileFilter(LogFilterMBean filter)
Sets the value of the LogFileFilter attribute. |
void |
setMemoryBufferFilter(LogFilterMBean filter)
|
void |
setMemoryBufferSeverity(String severity)
|
void |
setMemoryBufferSize(int size)
|
void |
setRedirectStderrToServerLogEnabled(boolean captureStderr)
|
void |
setRedirectStdoutToServerLogEnabled(boolean captureStdout)
|
void |
setStdoutFilter(LogFilterMBean filter)
Sets the value of the StdoutFilter attribute. |
Method Detail |
---|
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.
void setLogFileFilter(LogFilterMBean filter)
Sets the value of the LogFileFilter attribute.
filter
- The filter configuration for filtering messages being written to the log file.LogMBean.getLogFileFilter()
LogFilterMBean getStdoutFilter()
The filter configuration for log events being sent to the standard out.
void setStdoutFilter(LogFilterMBean filter)
Sets the value of the StdoutFilter attribute.
filter
- The filter configuration for filtering messages being written to the stdout.LogMBean.getStdoutFilter()
String getDomainLogBroadcastSeverity()
void setDomainLogBroadcastSeverity(String severity)
LogFilterMBean getDomainLogBroadcastFilter()
void setDomainLogBroadcastFilter(LogFilterMBean filter)
filter
- The filter configuration for filtering messages being broadcast
to the domain log.String getMemoryBufferSeverity()
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.
void setMemoryBufferSeverity(String severity)
LogFilterMBean getMemoryBufferFilter()
The filter configuration for messages that are stored in the log memory buffer. By default, all log messages are cached.
void setMemoryBufferFilter(LogFilterMBean filter)
int getMemoryBufferSize()
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.
void setMemoryBufferSize(int size)
boolean isLog4jLoggingEnabled()
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.
void setLog4jLoggingEnabled(boolean enableLog4j)
Sets the value of the Log4jLoggingEnabled attribute.
LogMBean.isLog4jLoggingEnabled()
boolean isRedirectStdoutToServerLogEnabled()
void setRedirectStdoutToServerLogEnabled(boolean captureStdout)
boolean isRedirectStderrToServerLogEnabled()
void setRedirectStderrToServerLogEnabled(boolean captureStderr)
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.
void setDomainLogBroadcasterBufferSize(int bufferSize)
bufferSize
-
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, 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 Oracle WebLogic Server 10.3.1 MBean API Reference 11g Release 1 (10.3.1) Part Number E13945-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |