Skip to content

Instantly share code, notes, and snippets.

@woodie
Created January 5, 2010 04:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodie/269145 to your computer and use it in GitHub Desktop.
Save woodie/269145 to your computer and use it in GitHub Desktop.
Set log level on App Engine for JRuby
require 'appengine-rack'
AppEngine::Rack.configure_app(
:application => 'application-id',
:system_properties => {'java.util.logging.config.file' =>
'WEB-INF/classes/logging.properties'},
:precompilation_enabled => true,
:sessions_enabled => true,
:version => "1")
# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler
# Set the default logging level for the root logger
.level = ALL
# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level = INFO
# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level = ALL
# Set the default formatter for new ConsoleHandler instances
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
# Set the default logging level for the logger named com.mycompany
com.mycompany.level = ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment