Created
January 5, 2010 04:21
-
-
Save woodie/269145 to your computer and use it in GitHub Desktop.
Set log level on App Engine for JRuby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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