Documentation

O365LoggerService
in package
implements O365LoggerServiceInterface

Our custom Logger service.

Interfaces, Classes, Traits and Enums

O365LoggerServiceInterface
The interface for the O365LoggerService service.

Table of Contents

$logger  : LoggerChannelInterface
The logger channel.
$loggerFactory  : LoggerChannelFactoryInterface
Drupal\Core\Logger\LoggerChannelFactoryInterface definition.
$messenger  : Messenger
The drupal messenger.
__construct()  : mixed
Constructs a new O365LoggerService object.
debug()  : mixed
Log a debug message into the watchdog.
log()  : mixed
Log a message into the watchdog.
showDrupalMessage()  : mixed
Render a drupal message.

Properties

$loggerFactory

Drupal\Core\Logger\LoggerChannelFactoryInterface definition.

protected LoggerChannelFactoryInterface $loggerFactory

Methods

__construct()

Constructs a new O365LoggerService object.

public __construct(LoggerChannelFactoryInterface $logger_factory, Messenger $messenger) : mixed
Parameters
$logger_factory : LoggerChannelFactoryInterface

The LoggerChannelFactoryInterface definition.

$messenger : Messenger

The Messenger definition.

Return values
mixed

debug()

Log a debug message into the watchdog.

public debug(TranslatableMarkup $message) : mixed
Parameters
$message : TranslatableMarkup

The translatable message.

Return values
mixed

log()

Log a message into the watchdog.

public log(mixed $message, mixed $severity) : mixed
Parameters
$message : mixed

The message.

$severity : mixed

The severity of the log message.

Return values
mixed

showDrupalMessage()

Render a drupal message.

private showDrupalMessage(TranslatableMarkup|string $message, string $severity) : mixed
Parameters
$message : TranslatableMarkup|string

The message to print.

$severity : string

The severity of the message.

Return values
mixed

Search results