Skip to content

Commit

Permalink
Update LineLogParser.php
Browse files Browse the repository at this point in the history
fix to have more characters
  • Loading branch information
ddtraceweb authored Jul 23, 2020
1 parent 507bf24 commit d6715cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dubture/Monolog/Parser/LineLogParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class LineLogParser implements LogParserInterface
* @var string
*/
protected $pattern = array(
'default' => '/\[(?P<date>.*)\] (?P<logger>\([a-zA-Z\'-]+)).(?P<level>\w+): (?P<message>[^\[\{]+) (?P<context>[\[\{].*[\]\}]) (?P<extra>[\[\{].*[\]\}])/',
'error' => '/\[(?P<date>.*)\] (?P<logger>\([a-zA-Z\'-]+)).(?P<level>\w+): (?P<message>(.*)+) (?P<context>[^ ]+) (?P<extra>[^ ]+)/'
'default' => '/\[(?P<date>.*)\] (?P<logger>[\w-]+).(?P<level>\w+): (?P<message>[^\[\{]+) (?P<context>[\[\{].*[\]\}]) (?P<extra>[\[\{].*[\]\}])/',
'error' => '/\[(?P<date>.*)\] (?P<logger>[\w-]+).(?P<level>\w+): (?P<message>(.*)+) (?P<context>[^ ]+) (?P<extra>[^ ]+)/'
);


Expand Down

0 comments on commit d6715cb

Please sign in to comment.