Skip to content

Commit

Permalink
Merge pull request customink#28 from ahoward/master
Browse files Browse the repository at this point in the history
Removed dependency on active support/core_ext for rails 3.2.3 (hat tip @ahoward)
  • Loading branch information
astupka committed Apr 4, 2012
2 parents 2ee0757 + 0669019 commit 4eb9489
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/central_logger/mongo_logger.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
require 'erb'
require 'mongo'
require 'active_support'
require 'active_support/core_ext'
require 'central_logger/replica_set_helper'

module CentralLogger
class MongoLogger < ActiveSupport::BufferedLogger
include ReplicaSetHelper

PRODUCTION_COLLECTION_SIZE = 250.megabytes
DEFAULT_COLLECTION_SIZE = 100.megabytes
MB = 2 ** 20
PRODUCTION_COLLECTION_SIZE = 256 * MB
DEFAULT_COLLECTION_SIZE = 128 * MB
# Looks for configuration files in this order
CONFIGURATION_FILES = ["central_logger.yml", "mongoid.yml", "database.yml"]
LOG_LEVEL_SYM = [:debug, :info, :warn, :error, :fatal, :unknown]
Expand Down

0 comments on commit 4eb9489

Please sign in to comment.