class PSRCommandLogger implements CommandSubscriber (View source)

Methods

__construct(LoggerInterface|null $logger, string $prefix = 'MongoDB command: ')

No description

register()

No description

unregister()

No description

commandStarted(CommandStartedEvent $event)

No description

commandSucceeded(CommandSucceededEvent $event)

No description

commandFailed(CommandFailedEvent $event)

No description

Details

__construct(LoggerInterface|null $logger, string $prefix = 'MongoDB command: ')

Parameters

LoggerInterface|null $logger
string $prefix

register()

unregister()

commandStarted(CommandStartedEvent $event)

Parameters

CommandStartedEvent $event

commandSucceeded(CommandSucceededEvent $event)

Parameters

CommandSucceededEvent $event

commandFailed(CommandFailedEvent $event)

Parameters

CommandFailedEvent $event