Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow for replacing padrino's logger with our own #2118
We want to modify the padrino logging output. The only viable way we found was to replace the default logger with our own instance:
However, we are logging objects, not just strings. Just that they never arrive intact when the formatter is called. They just magically get turned into strings again. Turns out this line is responsible for that: https://github.com/padrino/padrino-framework/blob/master/padrino-core/lib/padrino-core/logger.rb#L78.
Why are we even triggering this code, if we have replaced the default logger? Turns out this line is doing this: https://github.com/padrino/padrino-framework/blob/master/padrino-core/lib/padrino-core/logger.rb#L316.
Our current work around:
Long story short: Please allow us to side-step this behaviour of Padrino, or at least allow us to log our arbitrary logging format. Human readable format is not cutting it for us, we want machines to understand.