Logging best practices

Andre Pany andre at s-e-a-p.de
Sat Apr 27 09:53:32 UTC 2019


On Thursday, 25 April 2019 at 10:33:00 UTC, Vladimirs Nordholm 
wrote:
> Hello.
>
> Is there a current "Best Practices" for logging in D?
>
> For the actual logging, I know of `std.experimental.logger`. 
> However, the `experimental` has kept me away from it.
>
> Is it good, or are there any better alternatives?

I also use it for all of my applications. But I really miss a 
RotatedTimeFileLogger. One big log file which will grow and grow 
is not that usuable in cloud environment.

Also I haven't found out wheter it is safe / how to write from 
different threads to the same log file.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list