DbLog
class DbLog implements LoggerInterface (View source)
Logs events in the watchdog database table.
Traits
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Provides dependency injection friendly methods for serialization.
Constants
| DEDICATED_DBLOG_CONNECTION_TARGET |
The dedicated database connection target to use for log entries. |
Properties
| protected array | $_serviceIds | An array of service IDs keyed by property name used for serialization. |
from DependencySerializationTrait |
| protected array | $_entityStorages | An array of entity type IDs keyed by the property name of their storages. |
from DependencySerializationTrait |
| protected Connection | $connection | The database connection object. |
|
| protected LogMessageParserInterface | $parser | The message's placeholders parser. |
Methods
log($level, $message, array $context = [])
{@inheritdoc}
Details
emergency($message, array $context = [])
{@inheritdoc}
alert($message, array $context = [])
{@inheritdoc}
critical($message, array $context = [])
{@inheritdoc}
error($message, array $context = [])
{@inheritdoc}
warning($message, array $context = [])
{@inheritdoc}
notice($message, array $context = [])
{@inheritdoc}
info($message, array $context = [])
{@inheritdoc}
debug($message, array $context = [])
{@inheritdoc}
log($level, $message, array $context = [])
{@inheritdoc}
__sleep()
{@inheritdoc}
__wakeup()
{@inheritdoc}
__construct(Connection $connection, LogMessageParserInterface $parser)
Constructs a DbLog object.