Skip to content

Commit

Permalink
Changing LineFormatter
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Hallgren <challgren@gmail.com>
  • Loading branch information
challgren committed Feb 22, 2022
1 parent 3d4edc7 commit 5831f73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function bootstrap(PluginApplicationInterface $app): void
&& Configure::read('papertrail.port', env('PAPERTRAIL_PORT'))
) {
Log::setConfig('default', function () {
$output = "%level_name% %message%";
$formatter = new LineFormatter($output, 'Y-m-d H:i:s.v');
$formatter = new LineFormatter('[%datetime%] %channel%.%level_name%: %message%', 'Y-m-d H:i:s.v');

$log = new Logger(strval(Configure::read('papertrail.channel', 'cakephp')));
$sysLog = new SyslogUdpHandler(
Expand Down

0 comments on commit 5831f73

Please sign in to comment.