Sha256: a635ca298ee5f3d6e6387edff5d19195182deee5792ac1355298d58854d4757b

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

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 = false
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eucalypt-0.5.4 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.5.3 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.5.2 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.5.1 lib/eucalypt/core/templates/eucalypt/config/logging.rb