public interface WebServerLogMBean extends LogFileMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMON_LOG_FORMAT |
static java.lang.String |
DATE_COLUMN_NAME |
static java.lang.String |
DEFAULT_ACCESS_LOG_FILE_NAME |
static java.lang.String |
EXTENDED_LOG_FORMAT |
static java.lang.String |
TIME_COLUMN_NAME |
DEFAULT_FILE_EXTENSION, DEFAULT_FILE_NAME, FILE_SEP, LOGS_DIR, MAX_ROTATED_FILES, NONE, SIZE, TIME, TIME_FORMAT
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getELFFields()
Returns the list of fields specified for the
extended
logging format for access.log. |
java.lang.String |
getFileName()
The name of the log file.
|
java.lang.String |
getLogFileFormat()
The format of the HTTP log file.
|
boolean |
isLoggingEnabled()
Indicates whether this server logs HTTP requests.
|
boolean |
isLogMilliSeconds()
Specifies if HTTP log messages should contain MilliSeconds.
|
boolean |
isLogTimeInGMT()
Specifies whether the time stamps for HTTP log messages are in
Greenwich Mean Time (GMT) regardless of the local time zone that
the host computer specifies.
|
void |
setELFFields(java.lang.String fields)
Sets the fields for the extended logging format for access.log.
|
void |
setFileName(java.lang.String fileName)
Sets the value of the fileName attribute.
|
void |
setLogFileFormat(java.lang.String format)
Sets the value of the logFileFormat attribute.
|
void |
setLoggingEnabled(boolean enable)
Sets the value of the loggingEnabled attribute.
|
void |
setLogMilliSeconds(boolean logMillis)
Sets the value of LogMilliSeconds attribute.
|
void |
setLogTimeInGMT(boolean useGMT)
Sets the value of the logTimeInGMT attribute.
|
computeLogFilePath, getBufferSizeKB, getDateFormatPattern, getFileCount, getFileMinSize, getFileTimeSpan, getFileTimeSpanFactor, getLogFilePath, getLogFileRotationDir, getLogRotationDirPath, getOutputStream, getRotateLogOnStartup, getRotationTime, getRotationType, isNumberOfFilesLimited, setBufferSizeKB, setDateFormatPattern, setFileCount, setFileMinSize, setFileTimeSpan, setFileTimeSpanFactor, setLogFileRotationDir, setNumberOfFilesLimited, setOutputStream, setRotateLogOnStartup, setRotationTime, setRotationType
addTag, freezeCurrentValue, getComments, getId, getInheritedProperties, getName, getNotes, getTags, isDefaultedMBean, isDynamicallyCreated, isInherited, isPersistenceEnabled, isSet, removeTag, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, setTags, touch, unSet
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener
static final java.lang.String DEFAULT_ACCESS_LOG_FILE_NAME
static final java.lang.String COMMON_LOG_FORMAT
static final java.lang.String EXTENDED_LOG_FORMAT
static final java.lang.String DATE_COLUMN_NAME
static final java.lang.String TIME_COLUMN_NAME
java.lang.String getFileName()
The name of the log file.
getFileName
in interface LogFileMBean
void setFileName(java.lang.String fileName) throws javax.management.InvalidAttributeValueException
Sets the value of the fileName attribute.
setFileName
in interface LogFileMBean
fileName
- The new fileName valuejavax.management.InvalidAttributeValueException
WebServerLogMBean.getFileName()
,
MachineMBean
void setLoggingEnabled(boolean enable)
Sets the value of the loggingEnabled attribute.
enable
- The new loggingEnabled valueWebServerLogMBean.isLoggingEnabled()
boolean isLoggingEnabled()
Indicates whether this server logs HTTP requests. (The remaining fields on this page are relevant only if you select this check box.)
Gets the loggingEnabled attribute of the WebServerMBean object.
java.lang.String getELFFields()
Returns the list of fields specified for the extended
logging format for access.log.
void setELFFields(java.lang.String fields) throws javax.management.InvalidAttributeValueException, DistributedManagementException
Sets the fields for the extended logging format for access.log. The string passed in must be a space delimited list of fields. For example: "time cs-method cs-uri sc-status". Please check the documentation for supported fields.
fields
- (eg: "time cs-method cs-uri sc-status")javax.management.InvalidAttributeValueException
DistributedManagementException
WebServerLogMBean.getELFFields()
java.lang.String getLogFileFormat()
The format of the HTTP log file. Both formats are defined by the W3C. With the extended log format, you use server directives in the log file to customize the information that the server records.
void setLogFileFormat(java.lang.String format) throws javax.management.InvalidAttributeValueException, DistributedManagementException
Sets the value of the logFileFormat attribute.
format
- The new logFileFormat valuejavax.management.InvalidAttributeValueException
DistributedManagementException
WebServerLogMBean.getLogFileFormat()
boolean isLogTimeInGMT()
Specifies whether the time stamps for HTTP log messages are in Greenwich Mean Time (GMT) regardless of the local time zone that the host computer specifies.
Use this method to comply with the W3C specification for Extended Format log files. The specification states that all time stamps for Extended Format log entries be in GMT.
This method applies only if you have specified the
extended
message format.
void setLogTimeInGMT(boolean useGMT)
Sets the value of the logTimeInGMT attribute.
useGMT
- The new logTimeInGMT valueWebServerLogMBean.isLogTimeInGMT()
boolean isLogMilliSeconds()
Specifies if HTTP log messages should contain MilliSeconds.
void setLogMilliSeconds(boolean logMillis)
Sets the value of LogMilliSeconds attribute.
logMillis
- - The new logMilliSeconds value