Review of Jose Armando Garcia Sancio's std.log

Robert Jacques sandford at jhu.edu
Wed Mar 7 07:16:24 PST 2012


On Tue, 06 Mar 2012 21:22:21 -0600, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> On 3/6/12 6:05 PM, Geoffrey Biggs wrote:
>> That approach means that if I actually do have a fatal error, I can't
>> mark it as such.
>
> Use log.fatal for those.
>
> Andrei

But fatal "Logs a fatal severity message. Fatal log messages terminate the  
application after the message is persisted. Fatal log message cannot be  
disable at compile time or at run time." The point is that he want to log  
a fatal message and then terminate in a custom manner. I don't see a  
problem with convince functions that log and error and then throw, but not  
having the option to not throw is an unnecessary limitation.


More information about the Digitalmars-d mailing list