1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] add get/set methods for logger channels

This commit is contained in:
geemus 2011-09-01 18:51:08 -05:00
parent 03ce1c3cec
commit e52ae34962

View file

@ -5,6 +5,14 @@ module Fog
:warning => ::STDOUT
}
def self.[](channel)
@channels[channel]
end
def self.[]=(channel, value)
@channels[channel] = value
end
def self.debug(message)
self.write(:debug, "[light_black][DEBUG] #{message}[/]")
end