-
Notifications
You must be signed in to change notification settings - Fork 52
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
Use Log::Log4perl with log levels #21
Comments
@iafan Would you consider merging a PR that replaces all prints with Log::Log4perl statements, provided the output of Serge remains exactly the same? |
Log::Log4perl-based logging can be handy. Can you share some snippet (or one file converted this way) before the entire PR lands so that we could agree on details? Specific questions/suggestions I have in mind:
|
All three of your points sound great. I was thinking along the same lines. I'm not sure when I'll be able to start but it's an enhancement I'm keen to make. Sure, I'll push a something to a branch after after I finish the a classes and the parameters on the main serge script. |
Also: Ideally, Serge should use some reasonable defaults without having a special log config file and without having users to create/alter one. By default, it would use some 'normal' output level which will currently be the same as the current output. Providing |
And there's one failing test that needs to be fixed upstream before we can integrate Log4perl (though it seems to be a minor one). See mschilli/log4perl#77 |
The output from "serge sync" is pretty verbose right now. The important parts get lost in the debugging information. Reformatting would help, but Log::Log4perl with log levels would be best. It would allow me to reuse other logging infrastructure at my company.
Obviously not high on the list of priorities, but nice to have. I could submit a pull request for this in the future if/after we roll Serge out.
The text was updated successfully, but these errors were encountered: