Log

This package provides interfaces and classes used to create different types of loggers.

Constants

LogLevel

Standard log levels.

Logs at debug and trace levels are usually captured only locally for troubleshooting and never sent to consolidated log services.


Interfaces

ILogger

Interface for logger components that capture execution log messages.


Classes

CachedLogger

Abstract logger that caches captured log messages in memory and periodically dumps them. Child classes implement saving cached messages to their specified destinations.

CompositeLogger

Aggregates all loggers from component references under a single component.

It allows to log messages and conveniently send them to multiple destinations.

ConsoleLogger

Logger that writes log messages to console.

Errors are written to standard err stream and all other messages to standard out stream.

DefaultLoggerFactory

Creates ILogger components by their descriptors.

Logger

Abstract logger that captures and formats log messages. Child classes take the captured messages and write them to their specific destinations.

LogLevelConverter

Helper class to convert log level values.

LogMessage

Data object to store captured log messages. This object is used by CachedLogger.

NullLogger

Dummy implementation of logger that doesn’t do anything.

It can be used in testing or in situations when a logger is required but shall be disabled.