Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2008 17:05
Show Gist options
  • Save anonymous/38045 to your computer and use it in GitHub Desktop.
Save anonymous/38045 to your computer and use it in GitHub Desktop.
case Merb::Config[:adapter]
when 'irb'
Merb::Config.use do |c|
c[:log_auto_flush ] = true
c[:log_level] = :debug
c[:log_stream] = STDOUT
c[:log_file] = nil
# Or redirect logging into a file:
# c[:log_file] = Merb.root / "log" / "development.log"
end
when 'runner'
Merb::Config.use do |c|
c[:log_level] = :error
c[:log_file] = Merb.root / "log" / "development.log"
end
end
Merb::Config.use { |c|
c[:exception_details] = true
c[:reload_templates] = true
c[:reload_classes] = true
c[:reload_time] = 0.5
c[:ignore_tampered_cookies] = true
}
Merb.logger.info("Loaded DEVELOPMENT Environment...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment