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:
parent
03ce1c3cec
commit
e52ae34962
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue