|
Boost : |
Subject: Re: [boost] [log] Comments
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-03-15 15:43:38
On 03/15/2010 09:32 PM, Stewart, Robert wrote:
> Andrey Semashev wrote:
>> On 03/15/2010 01:45 PM, Vladimir Prus wrote:
>>
>>> * Why is trivial logging printing the sequental number of each
>>> log message? I don't think this helps anything.
>>
>> Record identifiers proved to be very useful in communication,
>> surrounding the piece of log. It's much easier to write "see,
>> there's that error in line 2764" than to go for lengthy
>> explanations of how to find it in the file.
>
> Since there's no binary logging, the output is likely to be written
> to a file. I can use many means to determine a line number from the
> contents of a text file without embedding a line number proxy.
Maybe, you're right.
>>> Finally, I think by default, everybody things of logging as
>>> glorified std::cout, so trivial logging better print messages to
>>> console, not to a file.
>>
>> I disagree. First, you don't need the library to spam the console.
>
> Who are you to say what we need WRT the console? We frequently write
> output to stderr with the express intention of redirecting it to a
> file or pipeline.
My point was that you can simply write to stderr without messing with
the library. Writing to a file is a more complicated task, and the
library provides an easy way to solve it + a few bonuses.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk