Boost logo

Boost :

From: John Torjo (john_at_[hidden])
Date: 2003-05-25 02:05:13


> > > > > 7. Is it possible to write into log info from applications
directly?
> > >
> > Of course, use the .msg() function. Like this:
> ...
> > SMART_ASSERT(false).msg("huge file copy failed, compare current
> >
> Maybe some standalone function/macro is better to be used: assert(false)
> would trigger abort/exception/something nasty.
>
> What about:
> LOG_INFO_ASSERT_STREAM("....");
> which is commented out when asserts are disabled?

How about
SMART_ASSERT(false).warn("huge file copy failed...");

(warning usually is ignored - the user is not asked to do anything, by
default).

Best,
John

>
> /Pavel
>


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