BIND 10 #901: Alter logging interface to use positional formatting for message arguments

BIND 10 Development do-not-reply at isc.org
Wed May 4 09:31:25 UTC 2011


#901: Alter logging interface to use positional formatting for message arguments
-------------------------------------+-------------------------------------
            Reporter:  stephen       |                        Owner:
                Type:  enhancement   |                       Status:  new
            Priority:  major         |                    Milestone:
           Component:  logging       |  Sprint-20110517
           Sensitive:  0             |                     Keywords:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 The present logging interface using printf-style formatting (i.e. "%d",
 "%s" etc.) for its parameters.

 To
 * avoid problems where mis-matches between the numbers/type of format
 tokens and arguments could cause a crash.
 * facilitate local-language replacement of messages (arguments may appear
 in a different order in different languages).
 ... the logging interface is to be enhanced so as to accept parameter
 replacement based on position, i.e. to understand message format strings
 of the form ("error opening %1 for input, reason: %2").

 This ticket involves update of the logging interface to interpret and
 handle the formatting of the arguments. (Context on the task as well as
 suggestions for ways to do this can be found on
 [https://lists.isc.org/pipermail/bind10-dev/2011-April/002202.html this
 thread] and
 [https://lists.isc.org/pipermail/bind10-dev/2011-May/002231.html this
 thread] on the bind10-dev mailing list.  It is suggested that the
 provision of macros to reduce the cost of logging - as discussed in the
 threads - should also be part of this ticket.)

 This ticket also includes the update of existing message files.

-- 
Ticket URL: <http://bind10.isc.org/ticket/901>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list