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

Add request_log_parser #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add request_log_parser #8

wants to merge 3 commits into from

Conversation

NickLaMuro
Copy link
Owner

This is a parser of the rails logger, and allows you to determine the length of a given request by matching up the thread ID with the "Started" and "Completed in" lines.

Also does some aggregation as well, and makes use of the MultiFileLogParser to handle the two log lines it is searching for.

This was left in as a debuging statement.  Fixed.
For now, this just allows for passing in a `:single_file` for the
options, which overrides the default functionality for writing files
(which uses a `:id_col` to help determine file name).

The previous form is still valid as well, just allows for passing in a
IO object.  This doesn't open the file for you (however), but that might
change in the future.
This is a parser of the rails logger, and allows you to determine the
length of a given request by matching up the thread ID with the
"Started" and "Completed in" lines.

Also does some aggregation as well, and makes use of the
MultiFileLogParser to handle the two log lines it is searching for.

Built from:

https://gist.github.com/NickLaMuro/18b2fae94b26444e49f03920799f083c
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

Successfully merging this pull request may close these issues.

1 participant