Simple log provider that writes log events to a local array. More...
Protected Member Functions | |
void | doLog (fm.liveswitch.LogEvent logEvent) |
Logs a message at the specified log level. More... | |
Protected Member Functions inherited from fm.liveswitch.LogProvider | |
String | generateLogLine (fm.liveswitch.LogEvent logEvent) |
Generates a default log line. More... | |
String | getPrefix (fm.liveswitch.LogLevel level, boolean includeTimestamp) |
Converts a log-level to a 5-character string for consistently-spaced character sequences. More... | |
int | getProcessId () |
Gets the current process id. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from fm.liveswitch.LogProvider | |
static String | getLogLevelString (fm.liveswitch.LogLevel level) |
Converts a log-level to a 5-character string for consistently-spaced character sequences. More... | |
static String | getPrefixTimestamp (java.util.Date timestamp) |
Converts a timestamp to an ISO-8601-formatted string for rendering in a log message (YYYY-MM-DDThh:mm:ss.sssZ). More... | |
static String | getProduct () |
Returns the name of the current product. More... | |
Simple log provider that writes log events to a local array.
fm.liveswitch.LogEventLogProvider.LogEventLogProvider | ( | ) |
Initializes a new instance of the fm.liveswitch.LogEventLogProvider.
fm.liveswitch.LogEventLogProvider.LogEventLogProvider | ( | fm.liveswitch.LogLevel | level | ) |
Initializes a new instance of the fm.liveswitch.LogEventLogProvider class.
level | The log level. |
fm.liveswitch.LogEvent [] fm.liveswitch.LogEventLogProvider.clear | ( | ) |
Clears all text from the log and returns the former contents.
|
protected |
Logs a message at the specified log level.
logEvent | The log event details. |
Reimplemented from fm.liveswitch.LogProvider.
fm.liveswitch.LogEvent [] fm.liveswitch.LogEventLogProvider.getEvents | ( | ) |
Gets the logged events.