Module: Sysloggable
- Defined in:
- lib/sysloggable.rb,
lib/sysloggable/logger.rb,
lib/sysloggable/version.rb,
lib/sysloggable/container.rb
Defined Under Namespace
Classes: Logger
Constant Summary collapse
- VERSION =
"0.2.0"- Container =
::Dry::Container.new
Class Method Summary collapse
Class Method Details
.InjectLogger(options) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/sysloggable.rb', line 5 def self.InjectLogger() Module.new do define_method(:logger) do @logger ||= Container['lib.logger'].new() end end end |