-
Notifications
You must be signed in to change notification settings - Fork 58
Extract DEBUG_PACTO debugging logic into an actual logger #20
Comments
I will start working on a branch the first implementation of logging capabilities for Pacto. Stay tuned, I will post my updates soon. |
I'd prefer the built-in logger vs an external gem or hand-rolled logger, unless there's a strong case for using something else. |
I don't have any preference, we can use now the built in logger and if we need something more "advance" in the future then move to a gem. I will write a wrapper (Pacto::Logger) so it will be easy to migrate to another logger if needed. |
I remember seeing a bit of code that switches between a simple logger On Fri, Sep 20, 2013 at 7:47 PM, jesusmercado notifications@github.comwrote:
|
Logger class is just a wrapper around built in ruby logger. This way we can replace the logger library on the future (if needed)
Instead of the current
we could put the logging behavior into a class. Then we can either pass an actual logger or a noop logger to anyone wanting to log debug information, no ugly ifs needed.
The text was updated successfully, but these errors were encountered: