Method: Output::Writer#device

Defined in:
lib/output/writer.rb

#device(name) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/output/writer.rb', line 67

def device(name)
  result = nil
  logger.appenders.each do|device|
    result = device if device.name == name.to_s
  end
  result
end