jordansissel / ruby-cabin

Structured+contextual logging experiments in Ruby
Other
153 stars 22 forks source link

include globally shortcut? #10

Open petemounce opened 11 years ago

petemounce commented 11 years ago

Twp/logging has a nice feature where it's possible to call Logging.globally and have a logger instance created and named for every instance. This is done via this code; it's very convenient.

I've no idea whether there are any drawbacks to it.

Would that be feasible to copy (assuming drawbacks are minimal)?

jordansissel commented 11 years ago

Seems reasonable to me :)