• Stars
    star
    114
  • Rank 297,254 (Top 7 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 14 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dead simple Ruby Syslog logger

Syslogger

GitHub license GitHub release Gem Gem CI

A drop-in replacement for the standard Logger Ruby library, that logs to the syslog instead of a log file. Contrary to the SyslogLogger library, you can specify the facility and the syslog options.

Installation

$ gem install syslogger

Usage

require 'syslogger'

# Will send all messages to the local0 facility, adding the process id in the message
logger = Syslogger.new("app_name", Syslog::LOG_PID, Syslog::LOG_LOCAL0)

# Optionally split messages to the specified number of bytes
logger.max_octets = 480

# Send messages that are at least of the Logger::INFO level
logger.level = Logger::INFO # use Logger levels

logger.debug "will not appear"
logger.info "will appear"
logger.warn "will appear"

Contributions

See https://github.com/crohr/syslogger/contributors.

Copyright

Copyright (c) 2010 Cyril Rohr, INRIA Rennes-Bretagne Atlantique. See LICENSE for details.

More Repositories

1

pkgr

Package any app into deb or rpm packages, using heroku buildpacks
Ruby
581
star
2

rest-client-components

RestClient on steroids ! Easily add one or more Rack middleware around RestClient to add functionalities such as transparent caching (Rack::Cache), transparent logging, etc.
Ruby
87
star
3

rpm-s3

Maintain YUM repositories of RPM packages on S3, intelligently.
Python
62
star
4

ebarnouflant

Turn Github issues into blog posts
Ruby
59
star
5

rack-jsonp

A Rack middleware for providing JSON-P support
Ruby
34
star
6

cacheability

Transparent client-side caching of HTTP requests (heap, file, memcache). Built-in support for RestClient. Built upon Rack::Cache. [will be replaced by http://github.com/crohr/rest-client-components]
Ruby
17
star
7

www-buildcurl

Precompiled software, built on demand
CSS
10
star
8

vagrant-presentation

vagrant-presentation
Ruby
9
star
9

who-said-puppet-was-hard

Example Rails app with everything setup for deployment heaven using Puppet & Capistrano
Ruby
8
star
10

sinatra-rest-addons

A set of addons for REST APIs or apps created with the Sinatra framework
Ruby
5
star
11

sinatra-additional-routes

Adds some of the missing HTTP methods to the Sinatra router. [no longer maintained, see sinatra-rest-addons]
Ruby
3
star
12

annoying-wifi

Allows to log in to wifi networks using login portals. Only for TakeOff conf. Derived from Rulu Wifi.
Ruby
3
star
13

docapi

RDoc template for generating API documentation.
Ruby
3
star
14

g5k-checks

A framework to test Grid5000 nodes. Just an example for Grid'5000 team.
Ruby
2
star
15

toggl-notifier

Update your Adium status with the description of your current task in Toggl
2
star
16

bfire

Launch experiments on BonFIRE
Ruby
2
star
17

g5k-graph

A tool to help generate graphs for your Grid'5000 metrics.
2
star
18

gosen

Ruby wrapper to access the Grid'5000 RESTful API
Ruby
1
star
19

crohr.github.com

Cyril Rohr's home page
CSS
1
star
20

postgres-pubsub-example

Complete postgres LISTEN/NOTIFY example, with docker-compose file for easy demo
Ruby
1
star
21

cyrixmed

Gestion de Cabinet Mรฉdical [mirror, bug fixes only]
JavaScript
1
star
22

GRUDU

Fork of http://gforge.inria.fr/projects/grudu/ with Grid5000 API support.
Java
1
star
23

restfully-addons

Some non-REST features useful for some APIs
Ruby
1
star
24

parsing-utils

TODO: one-line summary of your gem
Ruby
1
star
25

grid5000-qualification

Scripts to qualify the platform (esp. the APIs)
Ruby
1
star
26

grid5000-campaign

[deprecated] see http://g5k-campaign.gforge.inria.fr
Ruby
1
star
27

rest-presentation

REST presentation @IRISA
Ruby
1
star
28

dotfiles

My dotfiles
Shell
1
star
29

rack-livetraffic

Solution for Ruby Easter Contest by Dimelo
Ruby
1
star
30

trash

trash
Ruby
1
star
31

sinatra-rest-helpers

Adds useful helpers for REST applications developed with Sinatra. [no longer maintained, see sinatra-rest-addons]
Ruby
1
star
32

rack-accept-header-updater

A Rack middleware for automatically removing file extensions from URIs, and update the Accept HTTP Header accordingly.
Ruby
1
star
33

rack-async2sync

A Rack middleware that transforms async requests (using thin + async_sinatra for example) into synchronous requests. Useful for testing Async Sinatra apps with a minimum of changes in your testing environment.
Ruby
1
star