Bug 749823 - RFE allow human readable debug levels for AXIS2_DEBUG_LEVEL
Summary: RFE allow human readable debug levels for AXIS2_DEBUG_LEVEL
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-aviary
Version: 2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: 2.3
: ---
Assignee: Pete MacKinnon
QA Contact: Daniel Horák
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-28 15:21 UTC by Jon Thomas
Modified: 2013-05-06 13:52 UTC (History)
6 users (show)

Fixed In Version: condor-7.8.2-0.1
Doc Type: Enhancement
Doc Text:
Release Note Aviary has replaced the integer configuration values of AXIS2_DEBUG_LEVEL with string equivalents. The integer values defined by the Axis2/C engine were used by Aviary as part of its configuration variables. However, the original values lack clear definition as to what each level represents. They are simply an increasing enumeration of verbosity. Thus, the following string values are now used with their minimum and maximum settings: AXIS2_LOG_LEVEL_CRITICAL (lowest verbosity) AXIS2_LOG_LEVEL_ERROR AXIS2_LOG_LEVEL_WARNING AXIS2_LOG_LEVEL_INFO AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_USER AXIS2_LOG_LEVEL_TRACE (highest verbosity)
Clone Of:
Environment:
Last Closed: 2013-05-06 13:52:25 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 757806 0 medium CLOSED Provide small sub-section on axis logging and config 2021-02-22 00:41:40 UTC

Internal Links: 757806

Description Jon Thomas 2011-10-28 15:21:57 UTC
Level in condor_contrib/aviary/src/AviaryScheddPlugin.cpp is an integer.

int level = param_integer("AXIS2_DEBUG_LEVEL",AXIS2_LOG_LEVEL_CRITICAL);

which means in order to change debug level to debug, one has to use 

AXIS2_DEBUG_LEVEL = 4

The RFE is to enable a human readable debug level so one can use something like:

AXIS2_DEBUG_LEVEL = AXIS2_LOG_LEVEL_DEBUG

Comment 1 Pete MacKinnon 2012-04-05 16:15:56 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Release Note

Aviary has replaced the integer configuration values of AXIS2_DEBUG_LEVEL with string equivalents. The integer values defined by the Axis2/C engine were used by Aviary as part of its configuration variables. However, the original values lack clear definition as to what each level represents. They are simply an increasing enumeration of verbosity. Thus, the following string values are now used with their minimum and maximum settings:

AXIS2_LOG_LEVEL_CRITICAL (lowest verbosity)
AXIS2_LOG_LEVEL_ERROR
AXIS2_LOG_LEVEL_WARNING
AXIS2_LOG_LEVEL_INFO
AXIS2_LOG_LEVEL_DEBUG
AXIS2_LOG_LEVEL_USER
AXIS2_LOG_LEVEL_TRACE (highest verbosity)

Comment 4 Daniel Horák 2013-04-24 12:58:22 UTC
Tested and verified on RHEL 5.9/6.4 - i386/x86_64:

# rpm -qa | grep condor
  condor-classads-7.8.8-0.4.1
  condor-aviary-7.8.8-0.4.1
  condor-7.8.8-0.4.1

It is slightly incorrectly described in comment 1. Along to comments in source code axutil_log.h and my verification, the AXIS2_LOG_LEVEL_USER logs only user level debug messages (DEBUG level is more verbose than USER level).

  AXIS2_LOG_LEVEL_CRITICAL - Critical level, logs only critical errors
  AXIS2_LOG_LEVEL_ERROR - Error level, logs only errors
  AXIS2_LOG_LEVEL_WARNING - Warning level, logs only warnings
  AXIS2_LOG_LEVEL_INFO - Info level, logs information
  AXIS2_LOG_LEVEL_DEBUG - Debug level, logs everything
  AXIS2_LOG_LEVEL_USER - User level, logs only user level debug messages
  AXIS2_LOG_LEVEL_TRACE - Trace level, Enable with compiler time option AXIS2_TRACE

Configuration value AXIS2_DEBUG_LEVEL works well with string representation of log levels.

>> VERIFIED


Note You need to log in before you can comment on or make changes to this bug.