Skip to content
This repository
tag: v4.12.5
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.431 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
TODO s for version 5
====================

Loggers as modules?
-------------------

Picky.logger = STDOUT
Picky.logger = Logger.new('log/picky.log')
Picky.logger = STDOUT.extend Picky::Loggers::Silent # <= Problematic.
Picky.logger = Logger.new('log/picky.log').extend Picky::Loggers::Verbose
...

def logger= loggy_thing
  loggy_thing.extend Picky::Loggers::Concise # This then decides how to extend.
  @logger = loggy_thing
end

Something went wrong with that request. Please try again.