Fr3nch13/CakePHP Utilities

LogTrait

A trait providing an object short-cut method to logging.

Table of Contents

Methods

log()  : bool
Convenience method to write a message to Log. See Log::write() for more information on writing to logs.

Methods

log()

Convenience method to write a message to Log. See Log::write() for more information on writing to logs.

public log(string $message[, string|int $level = LogLevel::ERROR ][, array<string|int, mixed>|string $context = [] ]) : bool
Parameters
$message : string

Log message.

$level : string|int = LogLevel::ERROR

Error level.

$context : array<string|int, mixed>|string = []

Additional log data relevant to this message.

Return values
bool

Success of log write.


        
On this page

Search results