Joutsen Logging v0.5.0+22-gec3d058
Public Member Functions | Properties | List of all members
Joutsen.Logging.Handler Interface Reference

Defines the interface for actual writers of log entries. More...

Public Member Functions

void Log (LogRecord record)
 

Properties

Filter Filter [get, set]
 An optional filter which determines if the record is handled by this handler. More...
 
Formatter Formatter [get, set]
 he formatter to be used to create the log entries which are written. More...
 
Encoding Encoding [get, set]
 The encoding of the output. More...
 

Detailed Description

Defines the interface for actual writers of log entries.

Remarks
The handler is used to write out the formatted log entries, so they are persisted.
Since
0.2.0

Member Function Documentation

◆ Log()

void Joutsen.Logging.Handler.Log ( LogRecord  record)

Property Documentation

◆ Encoding

Encoding Joutsen.Logging.Handler.Encoding
getset

◆ Filter

Filter Joutsen.Logging.Handler.Filter
getset

An optional filter which determines if the record is handled by this handler.

Remarks
This second stage of filtering records can be used to only wite specific records with a handler. This allows to use different handlers to write different kind of entries. E.g. one handler only writes errors, another one only warnings and a third one all remaining entries.

Implemented in Joutsen.Logging.BufferedHandler, Joutsen.Logging.FileRotationHandler, and Joutsen.Logging.StreamHandler.

◆ Formatter

Formatter Joutsen.Logging.Handler.Formatter
getset

he formatter to be used to create the log entries which are written.

Implemented in Joutsen.Logging.BufferedHandler, Joutsen.Logging.FileRotationHandler, and Joutsen.Logging.StreamHandler.