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

#data(*args) ⇒ Object



103
104
105
# File 'lib/logsly/outputs.rb', line 103

def data(*args)
  FileData.new(*args, &self.build)
end

#to_appender(data) ⇒ Object



107
108
109
# File 'lib/logsly/outputs.rb', line 107

def to_appender(data)
  Logsly::Logging182.appenders.file(data.path, :layout => self.to_layout(data))
end