Class: Logsly::Outputs::File

Inherits:
Base
  • Object
show all
Defined in:
lib/logsly/outputs.rb

Overview

FILE

Instance Attribute Summary

Attributes inherited from Base

#build

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_layout

Constructor Details

This class inherits a constructor from Logsly::Outputs::Base

Instance Method Details

#to_appender(*args) ⇒ Object



93
94
95
96
# File 'lib/logsly/outputs.rb', line 93

def to_appender(*args)
  data = FileData.new(*args, &self.build)
  Logsly::Logging182.appenders.file(data.path, :layout => self.to_layout(data))
end