Package com.adobe.granite.logging
Interface LogAnalyser
The log analyzer is a service making log entries available based on a configuration.
By default all log messages with log level ERROR are recorded.
Additional configurations can be provided through the
setLogConfiguration(LogConfigurationEntry[])
method. However, this configuration is not persisted and does not survive a
restart.-
Method Summary
Modifier and TypeMethodDescriptiongetLastLogEntries(int size) Get the last number of log entries.Get the current log configurationvoidsetLogConfiguration(LogConfigurationEntry[] config) Set the new configurations
-
Method Details
-
getLogConfiguration
LogConfigurationEntry[] getLogConfiguration()Get the current log configuration- Returns:
- An array of configurations. The array might have the length zero.
-
setLogConfiguration
Set the new configurations- Parameters:
config- An array of configurations ornullto remove all configs.
-
getLastLogEntries
Get the last number of log entries.- Parameters:
size- The maximum number of log entries or-1to get all available entries.- Returns:
- A list of log entries
-