<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>2129</bug_id>
          
          <creation_ts>2004-10-21 15:58</creation_ts>
          <short_desc>Gridftp logging levels (is 7&gt;10?)</short_desc>
          <delta_ts>2004-10-25 10:13:49</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>GridFTP</product>
          <component>GridFTP</component>
          <version>development</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mats Rynge">rynge@isi.edu</reporter>
          <assigned_to name="Mike Link">mlink@mcs.anl.gov</assigned_to>
          <cc>allcock@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Mats Rynge">rynge@isi.edu</who>
            <bug_when>2004-10-21 15:58:37</bug_when>
            <thetext>In the docs for 3.9.2, it says that the debug level (for -d) is between 1 and 
7, and in CVS it says: 
 
   debug_level  Log level. 1 only logs errors, 16 logs everything 
 
When trying to debug an earlier gridftp problem, setting the debug level to 10 
gave me less information than with a debug level of 7 (248 vs. 3146 bytes). 
Debug level 16 gave me 0 bytes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Mike Link">mlink@mcs.anl.gov</who>
            <bug_when>2004-10-21 18:33:11</bug_when>
            <thetext>That should read 15. (It is just a bitmask).  This got me thinking about user
specified log levels.  I can interperet the user log level as what they give ||
every level below, i.e. your 16 would have become a 31 internally, but then
users lose the ability to selectively pick different levels.  Obviously giving
them that ability means I have to provide tags for the levels and the user will
specify a list of tags.  i.e. -l error,info,dump ... (numbers could still be
used of course)  Is any of this useful?  Would a user ever want a high level
output but not the lower levels?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Mats Rynge">rynge@isi.edu</who>
            <bug_when>2004-10-21 18:51:07</bug_when>
            <thetext> 
I think a straight scale of 0 (only errors) to 15 (everything) is easy to use 
and makes sense. The ORing of levels would only be useful if logical names 
were used, not numbers (ie, error,info,dump instead of 7,8,12). 
 
Note that with logical names we would get very close to syslog(3). 
 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="William E. Allcock">allcock@mcs.anl.gov</who>
            <bug_when>2004-10-21 20:01:04</bug_when>
            <thetext>Subject: RE:  Gridftp logging levels (is 7&gt;10?)

Yes, I definitely think so.  If you had zeroed in on the area where the
problem was, you would only want that info, not wade through tons of other
stuff.




</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Mike Link">mlink@mcs.anl.gov</who>
            <bug_when>2004-10-25 10:13:49</bug_when>
            <thetext>I made log levels selectable with text tags (error,warn,info,dump,all), or a
single digit.  If the digit is given it will make sure to select all levels
below and including that digit.  This should handle the common case of a user
picking an arbitrary high number expecting to get a lot of output.  People that
want selective levels will use the tags.

Mike</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>