std.experimental.logger formal review round 3
Robert burner Schadek via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 28 02:00:52 PDT 2014
On Tuesday, 28 October 2014 at 01:42:12 UTC, Martin Nowak wrote:
> On 10/28/2014 01:01 AM, Robert burner Schadek wrote:
>> is different from the code that has been in the PR for quite
>> some time.
>> And the code you show does exactly what you say and the
>> current code
>> does something different.
>
> No it behaves the same.
>
> isLoggingActive is a template in phobos
>
> doSome is a function in a lib that performs logging and
> instantiates isLoggingActive
>
> main is a function in the app that performs logging and
> instantiates isLoggingActive and also calls doSome
>
> Now which of those functions actually logs depends on the
> compilation settings of the library, the compilation settings
> of the app and the logger that's being used.
The second two are wanted and disabling a LogLevel at CT of
phobos should be banned anyway. But no the less, it is one more
option the user has to manipulate the Logger.
More information about the Digitalmars-d
mailing list