Log
in package
Log class
Tags
Table of Contents
Properties
- $message : mixed
- $path : mixed
- $priority : mixed
- $serverInfo : mixed
- $toFile : mixed
- $toSystem : mixed
Methods
- __construct() : mixed
- trace() : mixed
- Output log to file &/| system
- format() : mixed
- Format the message(s)
- toFile() : mixed
- Output log to file
- toSystem() : mixed
- Output log to system
- setProperties() : mixed
- Default method to set properties
Properties
$message
public
mixed
$message
$path
public
mixed
$path
$priority
public
mixed
$priority
= LOG_INFO
$serverInfo
public
mixed
$serverInfo
= true
$toFile
public
mixed
$toFile
= true
$toSystem
public
mixed
$toSystem
= false
Methods
__construct()
public
__construct([mixed $options = [] ]) : mixed
Parameters
- $options : mixed = []
trace()
Output log to file &/| system
public
trace(string $message[, mixed $priority = false ][, mixed $header = true ]) : mixed
Parameters
- $message : string
- $priority : mixed = false
- $header : mixed = true
format()
Format the message(s)
protected
format(string|array<string|int, mixed> $message[, bool $header = false ]) : mixed
Parameters
- $message : string|array<string|int, mixed>
-
- one message (string) or multiple messages (array of strings)
- $header : bool = false
toFile()
Output log to file
protected
toFile() : mixed
toSystem()
Output log to system
protected
toSystem() : mixed
setProperties()
Default method to set properties
private
setProperties([array<string|int, mixed> $options = null ]) : mixed
Parameters
- $options : array<string|int, mixed> = null