public class TextLogStreamHandler extends AbstractLogStreamHandler
charset, compressionFilter, extension, flushLogFile, numOfBytes, numOfEntries, outputChannel, serializedStream, serializer, writerRegistry
Constructor and Description |
---|
TextLogStreamHandler(java.lang.Boolean flushLogFile,
java.lang.Integer bufferSize,
java.nio.charset.Charset charset,
ICompressionFilter compressionFilter,
WriterRegistry writerRegistry)
Create a text log stream handler.
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(IMonitoringRecord record,
int id)
Serialize a record.
|
close, getFileExtension, getNumOfBytes, getNumOfEntries, initialize
public TextLogStreamHandler(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, WriterRegistry writerRegistry)
flushLogFile
- activate flush after every recordbufferSize
- write buffer sizecharset
- charsetcompressionFilter
- compression filterwriterRegistry
- dummy writer registry, not used in the text logpublic void serialize(IMonitoringRecord record, int id) throws java.io.IOException
AbstractLogStreamHandler
serialize
in class AbstractLogStreamHandler
record
- the record itselfid
- the type id from the string registryjava.io.IOException
- on io errors, e.g., write errorsCopyright 2020 Kieker Project, http://kieker-monitoring.net