Boost logo

Boost :

From: Eugene Karpachov (jk_at_[hidden])
Date: 2002-04-08 23:46:53


9 Apr 2002 05:55:49 +0400 Ernie Makris wrote:
> It would look like the following:
> log << log_debug << log_format("%e %1") % "config file not found";
                                  ^^^^^^^

Please not that ugly format string again! Streams was invented to get
out of this cryptic, type-unsafe and processor-time-consuming feature,
so why not just to:

log << log_debug << log_errno() << " config file not found";

> The log stream would support levels, and a default level. etc...

IMHO log streambuf would be enough; the rest is trivial.

-- 
jk

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