Why fatal log throw object.Error@(0) on console?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 30 14:04:22 PST 2017


On 01/30/2017 05:21 AM, Suliman wrote:
> I found in the docs mention "If data is logged with LogLevel fatal by
> default an Error will be thrown.". But what the reason of such behavior?

That likely comes from the fact that 'fatal' describes states that you 
can't trust the program to do the right thing. For example, you may not 
be able to write to a log file. Fatal means fatal. :)

Ali



More information about the Digitalmars-d-learn mailing list