com.microstrategy.web.admin.beans.DiagnosticsBean |
Title: DiagnosticsBean. This bean provides the methods required for displaying and modifying information related with the log processing and handling on the application.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ADVANCED_LOGGER_CONSOLE_HANDLER | ||||||||||
String | ADVANCED_LOGGER_HANDLER | String that represents the name of an advanced handler. | |||||||||
String | ADVANCED_LOGGER_JAVA_CONSOLE_HANDLER | ||||||||||
String | COUNT_PROPERTY_NAME | String that represents the property on the diagnostics configuration file corresponding to how many output files to cycle through | |||||||||
String | DEFAULT_LOGGER_NAME | String that represents the name of a default logger | |||||||||
String | DIAGNOSTICS_CONFIG_DEFAULT_FILE | String that represents the name of the diagnostics configuration file | |||||||||
int | DIAGNOSTICS_TYPE_CUSTOM | Value that specifies the type of diagnostics to apply is a custom one | |||||||||
int | DIAGNOSTICS_TYPE_DEFAULT | Value that specifies the type of diagnostics to apply is the default one | |||||||||
int | DIAGNOSTICS_TYPE_NOT_INITIALIZED | Value that specifies the integer property has not yet been initialized | |||||||||
int | DIAGNOSTICS_TYPE_STATISTICS | Value that specifies that statistics is the type of diagnostics to apply. | |||||||||
String | LEVEL_PROPERTY_NAME | String that represents the property on the diagnostics configuration file corresponding to the level of logging detail | |||||||||
String | LIMIT_PROPERTY_NAME | String that represents the property on the diagnostics configuration file corresponding to the maximum amount to write to any one file | |||||||||
int | LOCAL_SHOW_ERRORS | Local flag that represents the display mode: show errors | |||||||||
int | LOCAL_SHOW_MESSAGES | Local flag that represents the display mode: show message | |||||||||
int | LOCAL_SHOW_WARNINGS | Local flag that represents the display mode: show warnings | |||||||||
String | LOG_DEFAULT_FILE_PREFIX | String that represents the property on the diagnostics configuration file corresponding to the name prefix for the logging file to generate | |||||||||
String | LOG_DEFAULT_FILE_SUFFIX | String that represents the property on the diagnostics configuration file corresponding to the name extension for the logging file to generate | |||||||||
String | PATTERN_PROPERTY_NAME | String that represents the property on the diagnostics configuration file corresponding to the location of the target log file | |||||||||
int | SORT_BY_LEVEL_ASCENDING | Indicates sorting order level (severity) ascending when showing log contents | |||||||||
int | SORT_BY_LEVEL_DESCENDING | Indicates sorting order level (severity) descending when showing log contents | |||||||||
int | SORT_BY_TIMESTAMP_ASCENDING | Indicates sorting order timestamp ascending when showing log contents | |||||||||
int | SORT_BY_TIMESTAMP_DESCENDING | Indicates sorting order timestamp descending when showing log contents | |||||||||
int | SORT_BY_USER_IP_ASCENDING | Indicates sorting order user ip ascending when showing log contents | |||||||||
int | SORT_BY_USER_IP_DESCENDING | Indicates sorting order user ip ascending when showing log contents | |||||||||
int | SORT_BY_USER_NAME_ASCENDING | Indicates sorting order user name ascending when showing log contents | |||||||||
int | SORT_BY_USER_NAME_DESCENDING | Indicates sorting order user name descending when showing log contents | |||||||||
int | STATE_SHOW_CONFIGURATION | Indicates the current state of the bean is showing the log configuration interface | |||||||||
int | STATE_SHOW_LOGS | Indicates the current state of the bean is showing the log contents | |||||||||
int | STATE_SHOW_STATISTICS | Indicates the current state of the bean is showing the statistic logging settings |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void | addValidationFailure(String fieldName, String value) | ||||||||||
abstract EditableLogger | getAdvancedLogger(String name) | ||||||||||
abstract List | getAdvancedLoggerNames() | ||||||||||
abstract int |
getCurrentPage()
Get the current page displayed when viewing the log file contents
| ||||||||||
abstract String |
getCustomDiagnosticsFileLocation()
Get the path and file used as configuration file properties, other than the default
| ||||||||||
abstract String |
getDefaultDiagnosticsFileLocation(boolean populate)
Get the path and file used as the default configuration file properties
| ||||||||||
abstract String |
getDefaultDiagnosticsFileLocation()
Get the path and file used as the default configuration file properties
| ||||||||||
abstract EditableLogger | getDefaultLogger() | ||||||||||
abstract String |
getDiagnosticLevel()
This method is deprecated.
the level can be obtained from
getLevel()
| ||||||||||
abstract int |
getDiagnosticType()
Get the diagnostic type that the bean has as selected
| ||||||||||
abstract int |
getDisplayFlag()
Get the flag to be used for defining which types of messages to display
| ||||||||||
abstract String |
getErrorField()
Obtain the error field that generated an error with the user's input
| ||||||||||
abstract int |
getFromDay()
Get the starting day to be considered when displaying log file contents
| ||||||||||
abstract int |
getFromMonth()
Get the starting month to be considered when displaying log file contents
| ||||||||||
abstract int |
getFromYear()
Get the starting year to be considered when displaying log file contents
| ||||||||||
abstract String |
getLogFileFolder()
This method is deprecated.
the folder can be obtained from the default logger and then read the property:
getDefaultLogger().getProperty(DiagnosticsBean.PATTERN_PROPERTY_NAME)
| ||||||||||
abstract int |
getShowState()
Get the state of the bean, that indicates the information that will be/is displayed to the user
| ||||||||||
abstract int |
getSort()
Get the sorting order to use when showing log file contents
| ||||||||||
abstract String |
getStatisticsFileLocation()
Get the path and file used as statistics file, other than the default
| ||||||||||
abstract String |
getStatisticsMode()
Get the statistics level currently defined on the bean
| ||||||||||
abstract int |
getToDay()
Get the ending day to be considered when displaying log file contents
| ||||||||||
abstract int |
getToMonth()
Get the ending month to be considered when displaying log file contents
| ||||||||||
abstract int |
getToYear()
Get the ending year to be considered when displaying log file contents
| ||||||||||
abstract String | getValidationFailureValue(String fieldName) | ||||||||||
abstract boolean | isValidField(String fieldName) | ||||||||||
abstract void |
setCurrentPage(int page)
Set the current page to display when viewing the log file contents
| ||||||||||
abstract void |
setCustomDiagnosticsFileLocation(String fileLocation)
Set the path and file used as configuration file properties, other than the default
| ||||||||||
abstract void |
setDiagnosticLevel(String diagnosticLevel)
This method is deprecated.
the level can be set directly to the default logger obtained from
getDefaultLogger()
| ||||||||||
abstract void |
setDiagnosticType(int diagnosticType)
Set the diagnostic type that the bean has as selected
| ||||||||||
abstract void |
setDisplayFlag(int displayFlag)
Set the flag to be used for defining which types of messages to display
| ||||||||||
abstract void |
setErrorField(String fieldName)
Set the error field (event argument name) that generated an error with the user's input
| ||||||||||
abstract void |
setFromDay(int day)
Set the starting day to be considered when displaying log file contents
| ||||||||||
abstract void |
setFromMonth(int month)
Set the starting month to be considered when displaying log file contents
| ||||||||||
abstract void |
setFromYear(int year)
Set the starting year to be considered when displaying log file contents
| ||||||||||
abstract void |
setLogFileFolder(String filePath)
This method is deprecated.
the folder can be set to the default logger:
getDefaultLogger().setProperty(DiagnosticsBean.PATTERN_PROPERTY_NAME, value)
| ||||||||||
abstract void |
setShowState(int state)
Set the state of the bean, to specify what information it should be displaying to the user.
| ||||||||||
abstract void |
setSort(int sort)
Set the sorting order to use when showing log file contents
| ||||||||||
abstract void |
setStatisticsFileLocation(String fileLocation)
Set the path and file used as configuration file properties, other than the default
| ||||||||||
abstract void |
setStatisticsMode(String mode)
Set the statistics level currently defined on the bean
| ||||||||||
abstract void |
setToDay(int day)
Set the ending day to be considered when displaying log file contents
| ||||||||||
abstract void |
setToMonth(int month)
Set the ending month to be considered when displaying log file contents
| ||||||||||
abstract void |
setToYear(int year)
Set the ending year to be considered when displaying log file contents
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
String that represents the name of an advanced handler. Creates on the advanced options section of the Diagnostics configuration page
String that represents the property on the diagnostics configuration file corresponding to how many output files to cycle through
String that represents the name of a default logger
String that represents the name of the diagnostics configuration file
Value that specifies the type of diagnostics to apply is a custom one
Value that specifies the type of diagnostics to apply is the default one
Value that specifies the integer property has not yet been initialized
Value that specifies that statistics is the type of diagnostics to apply.
String that represents the property on the diagnostics configuration file corresponding to the level of logging detail
String that represents the property on the diagnostics configuration file corresponding to the maximum amount to write to any one file
Local flag that represents the display mode: show errors
Local flag that represents the display mode: show message
Local flag that represents the display mode: show warnings
String that represents the property on the diagnostics configuration file corresponding to the name prefix for the logging file to generate
String that represents the property on the diagnostics configuration file corresponding to the name extension for the logging file to generate
String that represents the property on the diagnostics configuration file corresponding to the location of the target log file
Indicates sorting order level (severity) ascending when showing log contents
Indicates sorting order level (severity) descending when showing log contents
Indicates sorting order timestamp ascending when showing log contents
Indicates sorting order timestamp descending when showing log contents
Indicates sorting order user ip ascending when showing log contents
Indicates sorting order user ip ascending when showing log contents
Indicates sorting order user name ascending when showing log contents
Indicates sorting order user name descending when showing log contents
Indicates the current state of the bean is showing the log configuration interface
Indicates the current state of the bean is showing the log contents
Indicates the current state of the bean is showing the statistic logging settings
EditableLogger
which is liked to a Logger specified
Adds a Handler with the name: DiagnosticsBean.ADVANCED_LOGGER_HANDLERGet the current page displayed when viewing the log file contents
Get the path and file used as configuration file properties, other than the default
Get the path and file used as the default configuration file properties
populate | if True and the value is not yet available, it will
execute the logic for obtaining it. Otherwise, it will return the value available (null
if not found or not initialized yet) |
---|
Get the path and file used as the default configuration file properties
EditableLogger
linked to the default logger.
The default logger is determined by having the name: DiagnosticsBean.DEFAULT_LOGGER_NAME
This method is deprecated.
the level can be obtained from getLevel()
Get the diagnostic level that the bean (log configuration file) has as selected
Get the diagnostic type that the bean has as selected
DIAGNOSTICS_TYPE_DEFAULT
or DIAGNOSTICS_TYPE_CUSTOM
Get the flag to be used for defining which types of messages to display
Obtain the error field that generated an error with the user's input
Get the starting day to be considered when displaying log file contents
Get the starting month to be considered when displaying log file contents
Get the starting year to be considered when displaying log file contents
This method is deprecated.
the folder can be obtained from the default logger and then read the property:
getDefaultLogger().getProperty(DiagnosticsBean.PATTERN_PROPERTY_NAME)
Get the path of the log file folder that the bean (log configuration file) has as selected
Get the state of the bean, that indicates the information that will be/is displayed to the user
int
value that could be STATE_SHOW_CONFIGURATION
,
STATE_SHOW_LOGS
or STATE_SHOW_STATISTICS
Get the sorting order to use when showing log file contents
SORT_BY_LEVEL
, SORT_BY_USER_NAME
or SORT_BY_TIMESTAMP
constants. Defaults to SORT_BY_TIMESTAMP_DESCENDING
Get the path and file used as statistics file, other than the default
Get the statistics level currently defined on the bean
String
value representing the statistics mode defined, corresponding to
the int
constants defined on StatsHandlerSupport
.
Get the ending day to be considered when displaying log file contents
Get the ending month to be considered when displaying log file contents
Get the ending year to be considered when displaying log file contents
Set the current page to display when viewing the log file contents
page | the page number to be viewed |
---|
Set the path and file used as configuration file properties, other than the default
fileLocation | a String with the path and file used |
---|
This method is deprecated.
the level can be set directly to the default logger obtained from getDefaultLogger()
Set the diagnostic level that the bean (log configuration file) has as selected
diagnosticLevel | a String value representing the level of logging |
---|
Set the diagnostic type that the bean has as selected
diagnosticType | the type of diagnostic that is being used: DIAGNOSTICS_TYPE_DEFAULT or DIAGNOSTICS_TYPE_CUSTOM |
---|
Set the flag to be used for defining which types of messages to display
displayFlag | a binary value, combination of the LOCAL_SHOW (errors, messages, warnings) constants |
---|
Set the error field (event argument name) that generated an error with the user's input
fieldName | the field of the bean event that was not correctly populated and generated an error |
---|
Set the starting day to be considered when displaying log file contents
day | number of the day when to start |
---|
Set the starting month to be considered when displaying log file contents
month | number of the month when to start |
---|
Set the starting year to be considered when displaying log file contents
year | number of the year when to start |
---|
This method is deprecated.
the folder can be set to the default logger:
getDefaultLogger().setProperty(DiagnosticsBean.PATTERN_PROPERTY_NAME, value)
Set the path of the log file folder that the bean (log configuration file) has as selected
filePath | a String with the path information |
---|
Set the state of the bean, to specify what information it should be displaying to the user.
state | an int value that could be STATE_SHOW_CONFIGURATION ,
STATE_SHOW_LOGS or STATE_SHOW_STATISTICS
|
---|
Set the sorting order to use when showing log file contents
sort | an integer value coming from one of the SORT_BY_LEVEL or SORT_BY_TIMESTAMP constants |
---|
Set the path and file used as configuration file properties, other than the default
fileLocation | a String with the path and file used |
---|
Set the statistics level currently defined on the bean
mode | a String value representing the statistics mode defined, corresponding to
the int constants defined on StatsHandlerSupport .
|
---|
Set the ending day to be considered when displaying log file contents
day | number of the day when to finish |
---|
Set the ending month to be considered when displaying log file contents
month | number of the month when to finish |
---|
Set the ending year to be considered when displaying log file contents
year | number of the year when to finish |
---|