Sha256: 0b776dd3e3f9d9a1b4624dea2c3f38d678247ed4052c4e1381d9fc9e2d74397c

Contents?: true

Size: 504 Bytes

Versions: 6

Compression:

Stored size: 504 Bytes

Contents

class ApplicationController < Sinatra::Base
  configure :test do
    disable :logging
    disable :log_file
  end

  configure :development do
    set :logging, Lumberjack::Severity::DEBUG
    disable :log_file
  end

  configure :production do
    enable :logging
    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

6 entries across 6 versions & 1 rubygems

Version Path
eucalypt-0.7.2 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.7.1 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.7.0 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.6.2 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.6.1 lib/eucalypt/core/templates/eucalypt/config/logging.rb
eucalypt-0.6.0 lib/eucalypt/core/templates/eucalypt/config/logging.rb