Changeset 2989

Show
Ignore:
Timestamp:
08/25/10 16:26:19
Author:
douglm
Message:

Method of setting filtering log levels doesn't work. Use a simpler approach - needs an update to jboss-log4j.xml

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/quickstart/linux/startjboss

    r2983 r2989  
    1111usage() { 
    1212  echo "  $PRG [-heap size] [-newsize size] [-permgen size] [-debug]" 
    13   echo "       [-debugmodule name] [-activemquri uri]" 
     13  echo "       [-debugexprfilters name] [-activemquri uri]" 
    1414  echo "" 
    1515  echo " Where:" 
     
    3131  echo " -debug sets the logging level to DEBUG" 
    3232  echo "" 
    33   echo " -debugmodule sets the logging level for module name to DEBUG" 
    34   echo "  This sets a system variable org.bedework.loglevel.<name> which" 
    35   echo "  may be referenced by the log4j configuration" 
     33  echo " -debugexprfilters sets the logging level for bedework expression filters to DEBUG" 
    3634  echo "" 
    3735  echo " -activemquri sets the uri used by the activemq broker for bedework" 
     
    5553activemquri="vm://localhost" 
    5654 
     55exprfilters=INFO 
     56 
    5757# =================== End defaults =============================== 
    5858 
    5959LOG_THRESHOLD="-Djboss.server.log.threshold=INFO" 
    60 LOG_LEVELS="" 
    6160 
    6261while [ "$1" != "" ] 
     
    8887      LOG_THRESHOLD="-Djboss.server.log.threshold=DEBUG" 
    8988      ;; 
    90     -debugmodule
     89    -debugexprfilters
    9190      shift 
    92       LOG_LEVELS="$LOG_LEVELS -Dorg.bedework.loglevel.$1=DEBUG" 
     91      exprfilters=DEBUG 
    9392      shift 
    9493      ;; 
     
    119118JBOSS_BIND="-b 0.0.0.0" 
    120119 
     120LOG_LEVELS="-Dorg.bedework.loglevel.exprfilters=$exprfilters" 
     121 
    121122# 
    122123# Port shifting