public interface JMSSAFMessageLogFileMBean extends LogFileMBean
DEFAULT_FILE_NAME, MAX_ROTATED_FILES, NONE, SIZE, TIME, TIME_FORMAT
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
The name of the file that stores current log messages.
|
void |
setFileName(String fileName)
Sets the name of the file that stores current log messages.
|
getBufferSizeKB, getDateFormatPattern, getFileCount, getFileMinSize, getFileTimeSpan, getLogFileRotationDir, getRotateLogOnStartup, getRotationTime, getRotationType, isNumberOfFilesLimited, setBufferSizeKB, setDateFormatPattern, setFileCount, setFileMinSize, setFileTimeSpan, setFileTimeSpanFactor, setLogFileRotationDir, setNumberOfFilesLimited, setRotateLogOnStartup, setRotationTime, setRotationType
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
String getFileName()
LogFileMBean
The 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 LogFileMBean
void setFileName(String fileName) throws InvalidAttributeValueException
LogFileMBean
Sets the name of the file that stores current log messages.
setFileName
in interface LogFileMBean
fileName
- The new fileName valueInvalidAttributeValueException
LogFileMBean.getFileName()
,
MachineMBean