Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Basic support for remote syslog in EM.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README
Octocat-spinner-32 em-syslog.gemspec
Octocat-spinner-32 test.rb
README
em-syslog
#########
Simple syslog integration into EventMachine at the class level.

Still needs work and testing.

To install:

  git clone git://github.com/melito/em-syslog.git

    -or- 
  
  sudo gem install melito-em-syslog -s http://gems.github.com
  
SYNOPSIS:
  
  require 'em/syslog'

  # Setup syslog
  EM.syslog_setup('centralserver.com', 514)
	 
  # Send commands
	EM.emergency('system is unusable')
  EM.alert('action must be taken immediately')
  EM.critical('critical conditions')
  EM.error('error conditions')
  EM.warning('warning conditions')
  EM.notice('normal but significant conditions')
  EM.informational('informational messages')
  EM.info('informational messages (short name for the previous)')
  EM.debug('debug-level messages')

BUGS: 
  kqueue doesn't seem to work. (Haven't tested epoll)

TODO: 
   Benchmark
   Take some of the server examples and insert.
   Make sure blocking is minimal/non-existant 
   Add support for syslog-ng
     Refactor
     Add support for TCP (syslog-ng)
     Add support for TLS (syslog-ng)
   Clean up API
   Just improve everything.

FIXES:
   Was creating a new datagram socket everytime a packet was sent out.  Only use one now.
Something went wrong with that request. Please try again.