Unbuffered logging

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Apr 13 22:15:50 PDT 2015


On Monday, 13 April 2015 at 21:13:49 UTC, Johan Engelen wrote:
> Hi all,
>   While debugging an ICE, it was helpful to look at the Logger 
> output (obviously :), but, because it is buffered, the output 
> log did not stop at the point where the crash happened.
> I added fflush(stdout) to Logger:printf/printfln to help with 
> that.
> Is this something more people would like to have? Can we add an 
> option somewhere to enable this?
>
> cheers,
>   Johan

Hi Johan!

IMHO the logger code needs to be redesigned and unified. But with 
the switch to DDMD I don't think that this has a high priority...

Regards,
Kai


More information about the digitalmars-d-ldc mailing list