[log] logfile not created where expected

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[log] logfile not created where expected

Boost - Dev mailing list
hi,

I encountered a bug, most probably, in Boost.Log

It is reproduceable in the tutorial_logging.cpp :

https://www.boost.org/doc/libs/1_74_0/libs/log/example/doc/tutorial_logging.cpp

The short code should create a file named "sample.log". But it does not,
instead it creates a file called "00000.log", with the expected lines
logged in that file.

If I compile and run exactly the same tutorial in Boost 1.70, the file
sample.log is indeed created with the same content.

The problem is already there in Boost 1.73

What is the problem? Is there a workaround for it?

Thanks, regards, Barend



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [log] logfile not created where expected

Boost - Dev mailing list
On 2020-09-08 13:44, Barend Gehrels via Boost wrote:

> hi,
>
> I encountered a bug, most probably, in Boost.Log
>
> It is reproduceable in the tutorial_logging.cpp :
>
> https://www.boost.org/doc/libs/1_74_0/libs/log/example/doc/tutorial_logging.cpp 
>
>
> The short code should create a file named "sample.log". But it does not,
> instead it creates a file called "00000.log", with the expected lines
> logged in that file.
>
> If I compile and run exactly the same tutorial in Boost 1.70, the file
> sample.log is indeed created with the same content.
>
> The problem is already there in Boost 1.73
>
> What is the problem? Is there a workaround for it?

I replied in the issue you created:

https://github.com/boostorg/log/issues/129

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [log] logfile not created where expected

Boost - Dev mailing list
On di, 08. sep 16:18, Andrey Semashev via Boost wrote:

> On 2020-09-08 13:44, Barend Gehrels via Boost wrote:
> > hi,
> >
> > I encountered a bug, most probably, in Boost.Log
> >
> > It is reproduceable in the tutorial_logging.cpp :
> >
> > https://www.boost.org/doc/libs/1_74_0/libs/log/example/doc/tutorial_logging.cpp
> >
> > The short code should create a file named "sample.log". But it does not,
> > instead it creates a file called "00000.log", with the expected lines
> > logged in that file.

What a coincidence that - after a "longish" period of this bug
manifesting, somehow everybody runs into the same bug now:

 - https://stackoverflow.com/questions/63718805/parameter-passing-bug-in-boost-log/63727877#63727877
 - https://github.com/boostorg/parameter/issues/97 (last comment)

I wonder whether it was a combination of factors exposing this rather
than it lurking in plain site for a long while. Perhaps a note should
be added to known issues for Boost Log library users.

>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost