class Flor::Logger::StdOut
Public Class Methods
new(unit, f)
click to toggle source
Calls superclass method
Flor::Logger::Out::new
# File lib/flor/unit/logger.rb, line 287 def initialize(unit, f); super(unit); @f = f; end
Public Instance Methods
<<(s)
click to toggle source
# File lib/flor/unit/logger.rb, line 293 def <<(s); @f << s; self; end
flush()
click to toggle source
# File lib/flor/unit/logger.rb, line 296 def flush; @f.flush; end
log_colours?()
click to toggle source
# File lib/flor/unit/logger.rb, line 288 def log_colours? lc = @unit.conf.fetch('log_colours') { :no } return lc if [ true, false ].include?(lc) @f.tty? end
print(s)
click to toggle source
# File lib/flor/unit/logger.rb, line 294 def print(s); @f.print(s); end
puts(s)
click to toggle source
# File lib/flor/unit/logger.rb, line 295 def puts(s); @f.puts(s); end