PlainText
extends Base
in package
Formats log data as plain text.
Table of Contents
Properties
- $_showDate : bool
Methods
- __construct() : mixed
- format() : string
- getContextString() : string
- valueToString() : string
- Converts a value to string representation for logging.
Properties
$_showDate
private
bool
$_showDate
Methods
__construct()
public
__construct([bool $showDate = true ]) : mixed
Parameters
- $showDate : bool = true
Tags
format()
public
format(Data $data) : string
Parameters
- $data : Data
Return values
stringgetContextString()
protected
getContextString(array<string|int, mixed> $contextList) : string
Parameters
- $contextList : array<string|int, mixed>
Return values
stringvalueToString()
Converts a value to string representation for logging.
protected
valueToString(mixed $value) : string
Parameters
- $value : mixed