40 if (
false === in_array(
$messageType, self::getAvailableTypes())) {
41 $message = sprintf(
'The given message type "%s" is not supported', print_r(
$messageType,
true));
42 throw new \InvalidArgumentException($message);
55 self::OPERATING_SYSTEM,
65 return new LineFormatter(
'[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
73 if ($this->expandNewlines) {
74 $lines = preg_split(
'{[\r\n]+}', (
string) $record[
'formatted']);
75 foreach ($lines as $line) {
79 error_log((
string) $record[
'formatted'], $this->messageType);
const DEBUG
Detailed debug information.
Base Handler class providing the Handler structure.
static getAvailableTypes()
Stores to PHP error_log() handler.
__construct($messageType=self::OPERATING_SYSTEM, $level=Logger::DEBUG, $bubble=true, $expandNewlines=false)
Create styles array
The data for the language used.