class LoggoRails::Sync
Public Class Methods
new()
click to toggle source
# File lib/loggo_rails/sync.rb, line 5 def initialize() mon_initialize end
Public Instance Methods
write(msg)
click to toggle source
# File lib/loggo_rails/sync.rb, line 9 def write(msg) synchronize do client.insert msg end rescue Exception => ignored warn("log writing failed. #{ignored}") end
Protected Instance Methods
client()
click to toggle source
# File lib/loggo_rails/sync.rb, line 19 def client @client ||= LoggoRails::Client.new @client end