Boost logo

Boost :

Subject: Re: [boost] Review - boost::log
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-14 15:22:27


AMDG

Tom Brinkman wrote:
> You coud probably fix all my concerns by adding something like the
> following.
>
> Notice that there are no macros, no templates, its header file only and it
> does not require any other boost libraries.
>

It can also cause technical ODR violations if used in another header.

> Usage: boost::error("An Error has occured: %s\n", "Put message here");
>
>
> namespace boost::log
> {
> static void error (const char *format, ...);
> static void message (const char *format, ...);
> static void critical (const char *format, ...);
> static void warning (const char *format, ...);
> static void debug (const char *format, ...);
> }
>

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk