# yii\log

> 11 classes of the yii\log namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › log

## Classes

| Class | Summary |
| --- | --- |
| [`DbTarget`](/docs/api/yii/log/dbtarget/index.md) | DbTarget stores log messages in a database table. |
| [`Dispatcher`](/docs/api/yii/log/dispatcher/index.md) | Dispatcher manages a set of [log targets](/docs/api/yii/log/target/index.md). |
| [`EmailTarget`](/docs/api/yii/log/emailtarget/index.md) | EmailTarget sends selected log messages to the specified email addresses. |
| [`FileTarget`](/docs/api/yii/log/filetarget/index.md) | FileTarget records log messages in a file. |
| [`Logger`](/docs/api/yii/log/logger/index.md) | Logger records logged messages in memory and sends them to different targets if [`$dispatcher`](/docs/api/yii/log/logger/index.md#property-dispatcher) is set. |
| [`LogRuntimeException`](/docs/api/yii/log/logruntimeexception/index.md) | LogRuntimeException represents an exception caused by problems with log delivery. |
| [`PsrLogger`](/docs/api/yii/log/psrlogger/index.md) final | Adapts PSR-3 log calls to a Yii logger. |
| [`PsrMessage`](/docs/api/yii/log/psrmessage/index.md) final readonly | Stores a PSR-3 message together with its original level and context. |
| [`PsrTarget`](/docs/api/yii/log/psrtarget/index.md) | Exports Yii log messages to a PSR-3 logger. |
| [`SyslogTarget`](/docs/api/yii/log/syslogtarget/index.md) | SyslogTarget writes log to syslog. |
| [`Target`](/docs/api/yii/log/target/index.md) abstract | Target is the base class for all log target classes. |