Skip to content

Commit

Permalink
Enhancement: Use AWS suggested LineFormatter attributes (#71)
Browse files Browse the repository at this point in the history
* Enhancement: Use AWS suggested LineFormatter attributes

* Adding spaces after attributes
  • Loading branch information
mhdhaddad authored and maxbanton committed Oct 6, 2019
1 parent f53e83e commit a0f1752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Handler/CloudWatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function ($stream) {
*/
protected function getDefaultFormatter()
{
return new LineFormatter("%level_name%: %message% %context% %extra%\n");
return new LineFormatter("%channel%: %level_name%: %message% %context% %extra%", null, false, true);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Handler/CloudWatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function testFormatter()

$formatter = $handler->getFormatter();

$expected = new LineFormatter("%level_name%: %message% %context% %extra%\n");
$expected = new LineFormatter("%channel%: %level_name%: %message% %context% %extra%", null, false, true);

$this->assertEquals($expected, $formatter);
}
Expand Down

0 comments on commit a0f1752

Please sign in to comment.