Class: DockerLogger
- Inherits:
-
Logger
- Object
- Logger
- DockerLogger
- Defined in:
- lib/docker/logger.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
Returns the value of attribute group.
Instance Method Summary collapse
- #<<(*args) ⇒ Object
- #add(*args) ⇒ Object
-
#initialize(*args) ⇒ DockerLogger
constructor
A new instance of DockerLogger.
Constructor Details
#initialize(*args) ⇒ DockerLogger
Returns a new instance of DockerLogger.
7 8 9 10 11 12 |
# File 'lib/docker/logger.rb', line 7 def initialize(*args) @stream_output = args[0] == STDOUT || args[0] == STDERR ? true : false @group = 'default' super(*args) end |
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group.
5 6 7 |
# File 'lib/docker/logger.rb', line 5 def group @group end |
Instance Method Details
#<<(*args) ⇒ Object
14 15 16 17 |
# File 'lib/docker/logger.rb', line 14 def <<(*args) args[0] = decorate(*args[0]) super(*args) end |
#add(*args) ⇒ Object
19 20 21 22 |
# File 'lib/docker/logger.rb', line 19 def add(*args) args[2] = decorate(args[2]) super(*args) end |