require 'uri'
require 'rack'

require 'nyny/version'
require 'nyny/primitives'
require 'nyny/request_scope'
require 'nyny/route'
require 'nyny/app'
require 'nyny/router'
require 'nyny/core-ext/runner'
require 'nyny/core-ext/templates'
require 'nyny/core-ext/assets'

module NYNY
  class EnvString < String
    [:production, :development, :test].each do |env|
      define_method "#{env}?" do
        self == env.to_s
      end
    end
  end

  def self.root
    Dir.pwd
  end

  def self.env
    @env ||= EnvString.new(ENV['RACK_ENV'] || 'development')
  end
end

NYNY::App.register NYNY::Runner
NYNY::App.register NYNY::Templates
NYNY::App.register NYNY::Assets

require 'uri'
require 'rack'

require 'nyny/version'
require 'nyny/primitives'
require 'nyny/request_scope'
require 'nyny/route'
require 'nyny/app'
require 'nyny/router'
require 'nyny/core-ext/runner'
require 'nyny/core-ext/templates'
require 'nyny/core-ext/assets'

module NYNY
  class EnvString < String
    [:production, :development, :test].each do |env|
      define_method "#{env}?" do
        self == env.to_s
      end
    end
  end

  def self.root
    Dir.pwd
  end

  def self.env
    @env ||= EnvString.new(ENV['RACK_ENV'] || 'development')
  end

  def self.logger
    @logger ||= Logger.new(STDOUT)
  end

  def self.logger= new_logger
    @logger = new_logger
  end
end

NYNY::App.register NYNY::Runner
NYNY::App.register NYNY::Templates
NYNY::App.register NYNY::Assets

--- 
+++ 
@@ -27,14 +27,6 @@
   def self.env
     @env ||= EnvString.new(ENV['RACK_ENV'] || 'development')
   end
-
-  def self.logger
-    @logger ||= Logger.new(STDOUT)
-  end
-
-  def self.logger= new_logger
-    @logger = new_logger
-  end
 end
 
 NYNY::App.register NYNY::Runner
Remove logger, it's useless and only creates problems
