Sha256: 98ef33fc9ea246a76b282cd69ace1f9f843391eb7e62c78e6d6ae1b507a98ebd

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

require 'quandl/logger'
require 'quandl/logger/graylog2'

# configure with block
# configures :host, :port, :max_size, :facility, :version, :level
Quandl::Logger::GrayLog2.configure do |c|
  c.facility = 'quandl_logger:test'
end

# or configure from file
# Quandl::Logger::GrayLog2.configuration.from_file('config/graylog2.yml', 'development')

# use graylog2 class directly
Quandl::Logger::GrayLog2.info('hi')

# or replace quandl logger with GrayLog2
Quandl::Logger.use( Quandl::Logger::GrayLog2 )

# send your message
Quandl::Logger.info('hello')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl_logger-0.3.1 examples/graylog.rb
quandl_logger-0.2.6 examples/graylog.rb
quandl_logger-0.2.5 examples/graylog.rb