Sha256: 2c3ddaace408735c6958b8f40b0009dcfb1379ef3f71cf2ea782b681dbf91b8d

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

= slogger

Slogger is a Ruby library to help work with standard Ruby Syslog library.

== Features

=== Slogger::Logger

A more friendly wrapper on Ruby's Syslog.
    
Sample: simple message log
    
  slogger = Slogger::Logger.new "sample_app", :debug, :local0 
  slogger.info "A good info"
  slogger.debug "A deep info"
  
  # and after, look at the syslog file of your SO  ;)

Sample: message log preceded by spent time

  slogger = Slogger::Logger.new "sample_app", :debug, :local0 
  slogger.info "A really good info preceded by spent time" do
    # do something
  end

  # and after, look at the syslog file of your SO  ;)

=== Slogger::Rack::RequestLogger

A Rack middleware to log incoming requests.

Sample:

    configure do
      slogger = Slogger::Logger.new "sample_app", :debug, :local0
      use Slogger::Rack::RequestLogger, slogger
    end

    # and after, look at the syslog file of your SO  ;)
    
== Future

I don't know. I think in adding more stuff sometime in the future. Let's see.

For now is it.

== Copyright

Copyright (c) 2011 Leandro Silva (CodeZone). Blog: http://leandrosilva.com.br.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slogger-0.0.2 README.rdoc