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

Gzipped files #43

Open
nico-incubiq opened this issue May 17, 2016 · 0 comments
Open

Gzipped files #43

nico-incubiq opened this issue May 17, 2016 · 0 comments

Comments

@nico-incubiq
Copy link

Hi,

I logrotate my monolog files, so that a few of them are gzipped.
Could it be possible to add support for gzipped logs in the viewer?

I cannot make you a pull request because of the current state of master, but here is the code I already use on my machine (from 4.0.2):

in LogFile.php:60:
$file = $this->filesystem->read($this->args['path']);
if (pathinfo($this->args['path'])['extension'] === 'gz') {
$file = gzdecode($file);
}

Thanks,
Regards,

Nicolas

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