Skip to content

Commit

Permalink
Merge pull request #15 from SeunMatt/development
Browse files Browse the repository at this point in the history
fixed issue #13
  • Loading branch information
SeunMatt authored Sep 3, 2019
2 parents 1598d4f + c072b7d commit 94bfe30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CHANGELOG
===========

V1.1.2
-------
- Fix issue [#13](https://github.com/SeunMatt/codeigniter-log-viewer/issues/13) and improve regex patterns

V1.1.1
-------
Expand Down
4 changes: 2 additions & 2 deletions src/CILogViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CILogViewer {
];


const LOG_LINE_START_PATTERN = "/((INFO)|(ERROR)|(DEBUG)|(ALL))[\s-\d:\.\/]+(-->)/";
const LOG_DATE_PATTERN = ["/^((ERROR)|(INFO)|(DEBUG)|(ALL))\s-\s/", "/\s(-->)/"];
const LOG_LINE_START_PATTERN = "/((INFO)|(ERROR)|(DEBUG)|(ALL))[\s\-\d:\.\/]+(-->)/";
const LOG_DATE_PATTERN = ["/^((ERROR)|(INFO)|(DEBUG)|(ALL))\s\-\s/", "/\s(-->)/"];
const LOG_LEVEL_PATTERN = "/^((ERROR)|(INFO)|(DEBUG)|(ALL))/";

//this is the path (folder) on the system where the log files are stored
Expand Down

0 comments on commit 94bfe30

Please sign in to comment.