Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log_Parser parse preg_match error #1

Open
vokiel opened this issue Sep 30, 2010 · 1 comment
Open

Log_Parser parse preg_match error #1

vokiel opened this issue Sep 30, 2010 · 1 comment

Comments

@vokiel
Copy link

vokiel commented Sep 30, 2010

The preg_match in parse method should be changed acording to commented bloc in Log_Writer_File: http://github.com/lzyy/kohana-log/blob/master/classes/log/writer/file.php#L37

From: http://github.com/lzyy/kohana-log/blob/master/classes/log/parser.php#L19
To:
preg_match('/^(?[^[]+)[(?.)] message: "(?.)" client: (?[^ ]+) uri: (?[^ ]+) referer: (?[^ ]) agent: "(?.)" cookie: "(?.*)"/', $item, $matches);

@maxnag
Copy link

maxnag commented Dec 7, 2010

also this part - script: "(?<script>.*)" don't need. I have it in classes/log/parser.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants