www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to make a logger (possible bug)

reply Rishub Nagpal <rnagpal2 gmu.edu> writes:
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?
May 17 2016
parent Seb <seb wilzba.ch> writes:
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! :)
May 17 2016