ConfigurationMBean, DescriptorBean, javax.management.DynamicMBean, LogFileMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, SettableBean, WebLogicMBeanpublic interface JMSSAFMessageLogFileMBean extends LogFileMBean
DEFAULT_EMPTY_BYTE_ARRAYDEFAULT_FILE_NAME, MAX_ROTATED_FILES, NONE, SIZE, SIZE_OR_TIME, TIME, TIME_FORMAT| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getFileName() |
The name of the file that stores current log messages.
|
void |
setFileName(java.lang.String fileName) |
Sets the name of the file that stores current log messages.
|
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSetaddPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListenergetAttribute, getAttributes, invoke, setAttribute, setAttributesgetBufferSizeKB, getDateFormatPattern, getFileCount, getFileMinSize, getFileTimeSpan, getLogFileRotationDir, getRotateLogOnStartup, getRotationTime, getRotationType, isNumberOfFilesLimited, setBufferSizeKB, setDateFormatPattern, setFileCount, setFileMinSize, setFileTimeSpan, setFileTimeSpanFactor, setLogFileRotationDir, setNumberOfFilesLimited, setRotateLogOnStartup, setRotationTime, setRotationTypepostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListenergetMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParentjava.lang.String getFileName()
LogFileMBeanThe name of the file that stores current log messages. Usually it is a
computed value based on the name of the parent of this MBean. For example,
for a server log, it is SERVER_NAME.log.
However, if the name of the parent cannot be obtained,
the file name is weblogic.log. If you
specify a relative pathname, it is interpreted as relative to the
server's root directory.
To include a time and date stamp in the file name when the log
file is rotated, add java.text.SimpleDateFormat
variables to the file name. Surround each variable with percentage
(%) characters.
For example, if the file name is defined to be
myserver_%yyyy%_%MM%_%dd%_%hh%_%mm%.log, the log file
will be named myserver_yyyy_mm_dd_hh_mm.log.
When the log file is rotated, the rotated file name contains the
date stamp. For example, if the log file is rotated for the first time on 2 April,
2003 at 10:05 AM, the log file that contains the old messages will
be named myserver_2003_04_02_10_05.log00001.
If you do not include a time and date stamp, the rotated log
files are numbered in order of creation. For example,
myserver.log00007.
getFileName in interface LogFileMBeanvoid setFileName(java.lang.String fileName)
throws javax.management.InvalidAttributeValueException
LogFileMBeanSets the name of the file that stores current log messages.
setFileName in interface LogFileMBeanfileName - The new fileName valuejavax.management.InvalidAttributeValueExceptionLogFileMBean.getFileName(),
MachineMBean