0.0
No commit activity in last 3 years
No release in over 3 years
Carnivore file source
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

< 2.0.0, >= 1.0.0
 Project Readme

Carnivore Files

Provides File Carnivore::Source

Usage

require 'carnivore'
require 'carnivore-files'

Carnivore.configure do
  source = Carnivore::Source.build(
    :type => :carn_file, :args => {:path => '/var/log/app.log'}
  )
end

The File source is built on two "foundations", sleepy_penguin and nio4r. The optimal foundation will be selected based on the current Ruby in use (nio4r for JRuby, sleepy_penguin for everything else). If you want to force the foundation:

require 'carnivore'
require 'carnivore-files'

Carnivore.configure do
  source = Carnivore::Source.build(
    :type => :carn_file, :args => {
      :path => '/var/log/app.log',
      :foundation => :nio
    }
  )
end

Important note

The underlying foundations are not installed by this gem. Be sure include the dependency within your application dependencies (nio4r or sleepy_penguin).

Info