class StdOutLogger implements LoggerInterface (View source)

internal  
 

A basic logger class to log into stdOut for GCP logging.

Traits

LoggerTrait

Methods

__construct(string $level = LogLevel::DEBUG)

Constructs a basic PSR-3 logger class that logs into StdOut for GCP Logging

void
log($level, string|Stringable $message, array $context = [])

{@inheritdoc}

Details

__construct(string $level = LogLevel::DEBUG)

Constructs a basic PSR-3 logger class that logs into StdOut for GCP Logging

Parameters

string $level

The level of the logger instance.

void log($level, string|Stringable $message, array $context = [])

{@inheritdoc}

Parameters

$level
string|Stringable $message
array $context

Return Value

void