Commit 0f661e01 authored by Marco Boretto's avatar Marco Boretto Committed by GitHub

Merge pull request #212 from noplanman/fix_monolog_output_format

Add inline line breaks in logs.
parents 6e1f63a8 002ad4f6
......@@ -107,7 +107,11 @@ class TelegramLog
}
self::initialize();
self::$error_log_path = $path;
return self::$monolog->pushHandler(new StreamHandler(self::$error_log_path, Logger::ERROR));
return self::$monolog->pushHandler(
(new StreamHandler(self::$error_log_path, Logger::ERROR))
->setFormatter(new LineFormatter(null, null, true))
);
}
/**
......@@ -124,7 +128,11 @@ class TelegramLog
}
self::initialize();
self::$debug_log_path = $path;
return self::$monolog->pushHandler(new StreamHandler(self::$debug_log_path, Logger::DEBUG));
return self::$monolog->pushHandler(
(new StreamHandler(self::$debug_log_path, Logger::DEBUG))
->setFormatter(new LineFormatter(null, null, true))
);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment