Boost logo

Boost Users :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-06-14 02:53:28


Hi,

it doesn't seem to exist a simple way to customize the xml output without
rewriting the xml log formatter altogether - is that right? I'd like to be
able to specifiy the tag names used (TestSuite, TestLog, TestCase etc) for
compatibility with an already existing log parser.

It would be nice to have the current xml_log_formatter either providing
overridable methods or a traits template parameter used for setting the tag
names, e.g.:

enum xml_log_tag_type
{
    testsuite_tag,
    ...
};

class xml_log_formatter
{
...
private:
    virtual const_string tag(xml_log_tag_type t) const;
};

.. or ...

struct default_xml_log_tag_provider
{
    static const_string& tag(xml_log_tag_type t);
};

template<typename TagProvider = default_xml_log_tag_provider>
class xml_log_formatter
{ ... };

----
// Johan

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net