|
Boost Users : |
Subject: [Boost-users] Boost Log
From: Manuel Torres (manuel.torres.fernandez_at_[hidden])
Date: 2014-03-14 08:33:01
Hello,
I am using Boost Log 1.55 with MinGW 32-bits (GCC v.4.8.1) under Windows 7
64-bits and it seems that the "AutoFlush" parameter is not working when a
settings file is used. I thought it might have to do with the
"Asynchronous" parameter but, after setting four sinks with the
combinations of "AutoFlush" and "Asynchronous", I got the same result: the
log files are only created after the application is closed.
I would appreciate if someone could help.
This is the settings file I am testing with:
[Core]
DisableLogging=false
Filter="%Severity% < 6"
[Sinks.ConsoleSink]
Destination=Console
Format="[%TimeStamp%] <%Severity%> %Channel%: %Message%"
Asynchronous=true
AutoFlush=true
[Sinks.TextFileSink0]
Destination=TextFile
FileName="0_%Y%m%d%H%M%S_Node_%N.log"
Format="[%TimeStamp%] <%Severity%> %Channel%: %Message%"
Asynchronous=true
AutoFlush=true
Target="../log"
RotationSize=1000000
RotationTimePoint="00:00:00"
MaxSize=10000000
[Sinks.TextFileSink1]
Destination=TextFile
FileName="1_%Y%m%d%H%M%S_Node_%N.log"
Format="[%TimeStamp%] <%Severity%> %Channel%: %Message%"
Asynchronous=true
AutoFlush=false
Target="../log"
RotationSize=1000000
RotationTimePoint="00:00:00"
MaxSize=10000000
[Sinks.TextFileSink2]
Destination=TextFile
FileName="2_%Y%m%d%H%M%S_Node_%N.log"
Format="[%TimeStamp%] <%Severity%> %Channel%: %Message%"
Asynchronous=false
AutoFlush=true
Target="../log"
RotationSize=1000000
RotationTimePoint="00:00:00"
MaxSize=10000000
[Sinks.TextFileSink3]
Destination=TextFile
FileName="3_%Y%m%d%H%M%S_Node_%N.log"
Format="[%TimeStamp%] <%Severity%> %Channel%: %Message%"
Asynchronous=false
AutoFlush=false
Target="../log"
RotationSize=1000000
RotationTimePoint="00:00:00"
MaxSize=10000000
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net