Send logged messages to Loggly using either the HTTP API or Syslog/UDP.
Can be used in place of Ruby's Logger (http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/)
In fact, it (currently) returns an instance of Logger.
require 'logglier' log = Logglier.new(<INPUT URL>) log.info("hello from logglier")
RailsApplication::Application.configure do config.logger = Logglier.new(<INPUT URL>) end
The id is provided by loggly, look at the input's details page
Syslog UDP Inputs
The facility is optional and defaults to 16 (local0) if none is specified. Facilities are just integers from 0 to 23, see http://www.faqs.org/rfcs/rfc3164.html
- key=value Loggly stuff.
- Alternative https implementations (Typheous, Excon, etc). May be faster?
- Option to use Syslog TCP inputs. Possibly faster than the https inputs.
- Do logging in a seperate thread. Is this useful? Too complex?