require "logger"
require "mongoid"

Mongoid.load!("mongoid.yml")

Mongoid.logger.level = Logger::DEBUG
Mongoid.logger = Logger.new("log/mongoid.log")

Moped.logger.level = Logger::DEBUG
Moped.logger = Logger.new("log/moped.log")

Dir.glob("models/*.rb").each do |file|
	require_relative file
end

require "logger"
require "mongoid"

Mongoid.load!(File.join(File.dirname(__FILE__), "mongoid.yml"))

Mongoid.logger.level = Logger::DEBUG
Mongoid.logger = Logger.new($stdout)

Moped.logger.level = Logger::DEBUG
Moped.logger = Logger.new($stdout)

Dir.glob("models/*.rb").each do |file|
	require_relative file
end

Fix loading Mongoid, output to stdout
Fix loading Mongoid, output to stdout
