Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpDev07 committed Mar 25, 2022
1 parent ac306b3 commit 33f7da4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Logger/LogsnagHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,18 @@ protected function write(array $record): void
*/
public function getEvent(array $record): string
{
return $record['formatted'];
return "{$record['channel']}.{$record['level_name']}: {$record['message']}";
}

/**
* Gets the description for the record.
*
* @param array $record
* @return string
*/
public function getDescription(array $record): string
{
return $record['context'];
}

/**
Expand Down

0 comments on commit 33f7da4

Please sign in to comment.