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 display #6

Merged
merged 9 commits into from
Apr 5, 2012
Merged

Log display #6

merged 9 commits into from
Apr 5, 2012

Conversation

robmiller
Copy link
Contributor

This branch takes your sample log display and makes it dynamic, parsing the logs out and displaying them.

$log->decoded_message = $log->message;
if ( $log->format == 'json' ) {
$log->decoded_message = '<pre>' . print_r(json_decode($log->message), 1) . '</pre>';
$log->decoded_message = preg_replace('/stdClass Object\s*/', '', $log->decoded_message);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably also run this through htmlentities, come to think of it; I'll do that now.

remybach added a commit that referenced this pull request Apr 5, 2012
Parsing the logs out and display them.
@remybach remybach merged commit cad82c5 into remybach:master Apr 5, 2012
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.

2 participants