Class: Sinatra::Syslog::Logger

Inherits:
Syslog::Logger
  • Object
show all
Defined in:
lib/sinatra/syslog/logger.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



13
# File 'lib/sinatra/syslog/logger.rb', line 13

def close ; end

#flushObject



12
# File 'lib/sinatra/syslog/logger.rb', line 12

def flush ; end

#puts(content) ⇒ Object



9
10
11
# File 'lib/sinatra/syslog/logger.rb', line 9

def puts content
  content.each_line { |line| error line }
end

#write(content) ⇒ Object



6
7
8
# File 'lib/sinatra/syslog/logger.rb', line 6

def write content
  content.each_line { |line| info line }
end