Class TextLogStreamHandler
java.lang.Object
kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
kieker.monitoring.writer.filesystem.TextLogStreamHandler
public class TextLogStreamHandler extends AbstractLogStreamHandler
Create log files following the Kieker DAT format of semicolon separated values.
The handler supports compression.
- Since:
- 1.14
- Author:
- Reiner Jung
-
Field Summary
Fields inherited from class kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
charset, compressionFilter, extension, flushLogFile, numOfBytes, numOfEntries, outputChannel, serializedStream, serializer, writerRegistry
-
Constructor Summary
Constructors Constructor 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. -
Method Summary
Modifier and Type Method Description void
serialize(IMonitoringRecord record, int id)
Serialize a record.Methods inherited from class kieker.monitoring.writer.filesystem.AbstractLogStreamHandler
close, getFileExtension, getNumOfBytes, getNumOfEntries, initialize
-
Constructor Details
-
TextLogStreamHandler
public TextLogStreamHandler(java.lang.Boolean flushLogFile, java.lang.Integer bufferSize, java.nio.charset.Charset charset, ICompressionFilter compressionFilter, WriterRegistry writerRegistry)Create a text log stream handler.- Parameters:
flushLogFile
- activate flush after every recordbufferSize
- write buffer sizecharset
- charsetcompressionFilter
- compression filterwriterRegistry
- dummy writer registry, not used in the text log
-
-
Method Details
-
serialize
Description copied from class:AbstractLogStreamHandler
Serialize a record.- Specified by:
serialize
in classAbstractLogStreamHandler
- Parameters:
record
- the record itselfid
- the type id from the string registry- Throws:
java.io.IOException
- on io errors, e.g., write errors
-