public interface LogCollector
Interface for a log collector.
Adds new log record to a local storage.
May be configured by setting user defined log record storage, storage status, upload configuration and log upload strategy. Each of them may be set independently of others.
Reference implementation of each module used by default.
Modifier and Type | Method and Description |
---|---|
void |
addLogRecord(SuperRecord record)
Adds new log record to local storage.
|
void |
setConfiguration(LogUploadConfiguration configuration)
Set user implementation of a log upload configuration.
|
void |
setStorage(LogStorage storage)
Set user implementation of a log storage.
|
void |
setStorageStatus(LogStorageStatus status)
Set user implementation of a log storage status.
|
void |
setUploadStrategy(LogUploadStrategy strategy)
Set user implementation of a log upload strategy.
|
void addLogRecord(SuperRecord record) throws IOException
record
- New log record objectIOException
void setStorage(LogStorage storage)
storage
- User-defined log storage objectvoid setStorageStatus(LogStorageStatus status)
status
- User-defined log storage status objectvoid setUploadStrategy(LogUploadStrategy strategy)
strategy
- User-defined log upload strategy object.void setConfiguration(LogUploadConfiguration configuration)
configuration
- User-defined log upload configuration object.Copyright © 2015. All rights reserved.