Documentation

pm_Log
in package

Class pm_Log Intended to log various data.

Tags
since
12.5
deprecated

use pm_Bootstrap::getContainer()->get(Psr\Log\LoggerInterface::class)

Table of Contents

backtrace()  : mixed
Debug: debug messages with backtrace
debug()  : mixed
Debug: debug messages
err()  : mixed
Error: error conditions
getLogName()  : string
info()  : mixed
Informational: informational messages
log()  : mixed
vardump()  : mixed
Debug: debug messages with var_dump
warn()  : mixed
Warning: warning conditions

Methods

backtrace()

Debug: debug messages with backtrace

public static backtrace(string $message) : mixed
Parameters
$message : string
Return values
mixed

debug()

Debug: debug messages

public static debug(string|Exception $message) : mixed

Example: "Task ID is $taskId"

Parameters
$message : string|Exception
Tags
static
Return values
mixed

err()

Error: error conditions

public static err(string|Exception $message) : mixed
Parameters
$message : string|Exception
Return values
mixed

getLogName()

public static getLogName() : string
Return values
string

info()

Informational: informational messages

public static info(string|Exception $message) : mixed
Parameters
$message : string|Exception
Return values
mixed

log()

public static log(int $priority, string|Exception $message) : mixed
Parameters
$priority : int
$message : string|Exception
Tags
static
Return values
mixed

vardump()

Debug: debug messages with var_dump

public static vardump(mixed $var[, string $message = '' ]) : mixed
Parameters
$var : mixed
$message : string = ''
Return values
mixed

warn()

Warning: warning conditions

public static warn(string|Exception $message) : mixed
Parameters
$message : string|Exception
Return values
mixed

Search results