Sha256: 6ef55c990917e4f63117ce19cd13d676a8989e24f49fac53b1b735995155d0ad

Contents?: true

Size: 557 Bytes

Versions: 30

Compression:

Stored size: 557 Bytes

Contents

#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '../lib/log_recorder/lib/log_recorder')

# start with :
# apache_logging 'vhost.com' 'config/database.yml'
vhost_name  = ARGV[0] || 'test.host'
config_path = ARGV[1] || File.open(File.dirname(__FILE__) + '/../config/database.yml')

config = {}

YAML::load_documents( config_path ) do |doc|
  doc.each do |elem|
    next unless elem[0] == 'development'
    config = elem[1]
  end
end

rec = LogRecorder.new(vhost_name, config)

rec.test

#$stdin.each do |l|
#  rec.insert_combined_record()
#end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
zena-1.2.8 script/apache_logging
zena-1.2.7 script/apache_logging
zena-1.2.6 script/apache_logging
zena-1.2.5 script/apache_logging
zena-1.2.4 script/apache_logging
zena-1.2.3 script/apache_logging
zena-1.2.2 script/apache_logging
zena-1.2.1 script/apache_logging
zena-1.2.0 script/apache_logging
zena-1.1.3 script/apache_logging
zena-1.1.2 script/apache_logging
zena-1.1.1 script/apache_logging
zena-1.1.0 script/apache_logging
zena-1.0.0 script/apache_logging
zena-1.0.0.rc3 script/apache_logging
zena-1.0.0.rc2 script/apache_logging
zena-1.0.0.rc1 script/apache_logging
zena-0.16.9 script/apache_logging
zena-1.0.0.beta3 script/apache_logging
zena-0.16.8 script/apache_logging