Skip to content

Commit

Permalink
Merge pull request #390 from JayAnvers/patch-1
Browse files Browse the repository at this point in the history
Update HttpAccessLog.php
  • Loading branch information
arukompas committed Aug 23, 2024
2 parents 8d44a04 + 5ddbd2a commit 6dac1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logs/HttpAccessLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HttpAccessLog extends Log
{
public static string $name = 'HTTP Access';
public static string $levelClass = HttpStatusCodeLevel::class;
public static string $regex = '/(?P<ip>\S+) (?P<identity>\S+) (?P<remote_user>\S+) \[(?P<datetime>.+)\] "(?P<method>\S+) (?P<path>\S+) (?P<http_version>\S+)" (?P<status_code>\S+) (?P<content_length>\S+) "(?P<referrer>[^"]*)" "(?P<user_agent>[^"]*)"/';
public static string $regex = '/(?P<ip>\S+) (?P<identity>\S+) (?P<remote_user>\S+) \[(?P<datetime>.+)\] "(?P<method>\S+) (?P<path>\S+) (?P<http_version>\S+)"( (?P<status_code>\S+))?( (?P<content_length>\S+))?( "(?P<referrer>[^"]*)")?( "(?P<user_agent>[^"]*)")?/';
public static string $regexLevelKey = 'status_code';
public static array $columns = [
['label' => 'Datetime', 'data_path' => 'datetime'],
Expand Down

0 comments on commit 6dac1b0

Please sign in to comment.