Author: al Date: Tue Jun 4 08:16:11 2013 New Revision: 1489321 URL: http://svn.apache.org/r1489321 Log: Improve default logging configuration, through external file.
Review: https://reviews.apache.org/r/11597. By Dave Ball. Added: incubator/wave/trunk/wiab-logging.conf (with props) Modified: incubator/wave/trunk/run-server.sh Modified: incubator/wave/trunk/run-server.sh URL: http://svn.apache.org/viewvc/incubator/wave/trunk/run-server.sh?rev=1489321&r1=1489320&r2=1489321&view=diff ============================================================================== --- incubator/wave/trunk/run-server.sh (original) +++ incubator/wave/trunk/run-server.sh Tue Jun 4 08:16:11 2013 @@ -27,7 +27,7 @@ NAME=`sed "s/[\\t ]*=[\\t ]*/=/g" build. . process-script-args.sh exec java $DEBUG_FLAGS \ - -Dorg.eclipse.jetty.LEVEL=DEBUG \ + -Djava.util.logging.config.file=wiab-logging.conf -Djava.security.auth.login.config=jaas.config \ -Dwave.server.config=server.config \ -jar dist/$NAME-server-$WAVEINABOX_VERSION.jar Added: incubator/wave/trunk/wiab-logging.conf URL: http://svn.apache.org/viewvc/incubator/wave/trunk/wiab-logging.conf?rev=1489321&view=auto ============================================================================== --- incubator/wave/trunk/wiab-logging.conf (added) +++ incubator/wave/trunk/wiab-logging.conf Tue Jun 4 08:16:11 2013 @@ -0,0 +1,42 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# this file sets up console and file logging for the wiab server + +handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler + +# Available log levels are: +# ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF + +# Default global logging level. +# Loggers and Handlers may override this level +.level=INFO + +java.util.logging.ConsoleHandler.level = INFO +java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter + +java.util.logging.FileHandler.level = ALL +java.util.logging.FileHandler.pattern = wiab-server.log +java.util.logging.FileHandler.count=5 +java.util.logging.FileHandler.append=false +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +java.util.logging.FileHandler.limit=5242880 + +# Per-package logging levels. +# Add extra packages here to increase or decrease the log level +# per-package levels affect both console and file output + +org.eclipse.jetty.level = SEVERE +org.eclipse.jetty.websocket.level = SEVERE + +#org.waveprotocol.level=ALL + Propchange: incubator/wave/trunk/wiab-logging.conf ------------------------------------------------------------------------------ svn:eol-style = native
