class ApplicationController < Sinatra::Base configure :test do disable :logging disable :log_file end configure :development do enable :logging disable :log_file end configure :production do set :logging, Lumberjack::Severity::UNKNOWN enable :log_file end set :log_directory_format, "%Y-%m-%d_%H-%M-%S" require 'eucalypt/core/helpers/logging' # ActiveRecord logging ActiveRecord::Base.logger = Logger.new STDOUT ActiveRecord::Migration.verbose = true end