File: scribeoutputter

package info (click to toggle)
ruby-log4r 1.1.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: ruby: 2,744; xml: 96; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
= ScribeOutputter

A ScribeOutputter transforms a Log4r::LogEvent into an event passed to Scribe. The user can configure the outputter with
the host and port of the scribe scribe server.

== Usage

To use,
  <tt>require 'log4r'</tt>

An example,

  require 'log4r'

  logger = Log4r::ScribeOutputter.new('name', '127.0.0.1', 1463)
  logger.debug("Hello World")