24 const SIMPLE_FORMAT =
"[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
72 foreach ($vars[
'extra'] as $var => $val) {
73 if (
false !== strpos(
$output,
'%extra.'.$var.
'%')) {
74 $output = str_replace(
'%extra.'.$var.
'%', $this->stringify($val),
$output);
75 unset($vars[
'extra'][$var]);
79 foreach ($vars[
'context'] as $var => $val) {
80 if (
false !== strpos(
$output,
'%context.'.$var.
'%')) {
81 $output = str_replace(
'%context.'.$var.
'%', $this->stringify($val),
$output);
82 unset($vars[
'context'][$var]);
87 if (empty($vars[
'context'])) {
88 unset($vars[
'context']);
92 if (empty($vars[
'extra'])) {
93 unset($vars[
'extra']);
98 foreach ($vars as $var => $val) {
99 if (
false !== strpos(
$output,
'%'.$var.
'%')) {
100 $output = str_replace(
'%'.$var.
'%', $this->stringify($val),
$output);
110 foreach ($records as $record) {
111 $message .= $this->
format($record);
125 if (!$e instanceof \
Exception && !$e instanceof \Throwable) {
126 throw new \InvalidArgumentException(
'Exception/Throwable expected, got '.gettype($e).
' / '.get_class($e));
130 if ($previous = $e->getPrevious()) {
132 $previousText .=
', '.get_class($previous).
'(code: '.$previous->getCode().
'): '.$previous->getMessage().
' at '.$previous->getFile().
':'.$previous->getLine();
133 }
while ($previous = $previous->getPrevious());
136 $str =
'[object] ('.get_class($e).
'(code: '.$e->getCode().
'): '.$e->getMessage().
' at '.$e->getFile().
':'.$e->getLine().$previousText.
')';
138 $str .=
"\n[stacktrace]\n".$e->getTraceAsString();
147 return var_export(
$data,
true);
150 if (is_scalar(
$data)) {
151 return (
string)
$data;
154 if (version_compare(PHP_VERSION,
'5.4.0',
'>=')) {
158 return str_replace(
'\\/',
'/', @json_encode(
$data));
167 return str_replace(
array(
"\r\n",
"\r",
"\n"),
' ', $str);
while(false !==( $line=fgets( $in))) if(! $columns) $ignore
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
Create styles array
The data for the language used.
Write to Excel2007 format