Re: How to make a logger (possible bug)

2016-05-17 Thread Seb via Digitalmars-d-learn

On Tuesday, 17 May 2016 at 18:59:31 UTC, Rishub Nagpal wrote:

https://dlang.org/phobos/std_experimental_logger_filelogger.html

import std.experimental.logger;

void main()
{
auto l1 = new FileLogger("logFile", "loggerName");
}

throws an error:

Error: none of the overloads of '__ctor' are callable using 
argument types (string, string), candidates are:


Is this an error in the documentation?


Yes logger name seems to be removed. Please make an improvement 
request to fix it! :)


How to make a logger (possible bug)

2016-05-17 Thread Rishub Nagpal via Digitalmars-d-learn

https://dlang.org/phobos/std_experimental_logger_filelogger.html

import std.experimental.logger;

void main()
{
auto l1 = new FileLogger("logFile", "loggerName");
}

throws an error:

Error: none of the overloads of '__ctor' are callable using 
argument types (string, string), candidates are:


Is this an error in the documentation?