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

Group same log messages #23

Open
julkue opened this issue Nov 12, 2015 · 1 comment
Open

Group same log messages #23

julkue opened this issue Nov 12, 2015 · 1 comment

Comments

@julkue
Copy link
Contributor

julkue commented Nov 12, 2015

I am using monolog to log requests. This means, I am loggin the IP, User-Agent, URI and the time. Example:

$app['jmLog']->addInfo($_SERVER['REMOTE_ADDR'], array(
    "User-Agent" => $_SERVER['HTTP_USER_AGENT'],
    "URI" => $_SERVER['REQUEST_URI'],
    "Time" => date('Y-m-d H:i:s')
));

If I view the created log-file in monolog viewer it would be great if it would group all logs with the same message. In this case, IP-adresses.

This can be also great for error messages. If you have the same error occuring for multiple users, it would be great to show the error message only one time and show the related users with User-Agent, IP and time grouped by another.

@mpbzh mpbzh added the feature label Nov 20, 2015
@mpbzh
Copy link
Contributor

mpbzh commented Nov 20, 2015

This might make sense for subsequent log entries. However I don't have the time to implement this. Feel free to contribute, but make it a configurable feature, as not everyone wants them to be grouped.

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

No branches or pull requests

2 participants