class Logsly::Outputs::Base

BASE

Attributes

build[R]

Public Class Methods

new(&build) click to toggle source
# File lib/logsly/outputs.rb, line 23
def initialize(&build)
  @build = build || Proc.new{}
end

Public Instance Methods

data(*args) click to toggle source
# File lib/logsly/outputs.rb, line 27
def data(*args)
  raise NotImplementedError
end
to_appender(data) click to toggle source
# File lib/logsly/outputs.rb, line 35
def to_appender(data)
  raise NotImplementedError
end
to_layout(data) click to toggle source
# File lib/logsly/outputs.rb, line 31
def to_layout(data)
  Logsly::Logging182.layouts.pattern(data.to_pattern_opts)
end