vibe.d beta banner
get vibe.d
0.7.30

Function logDiagnostic

Logs a message.

Prototype

void logDiagnostic(string file, int line, S, T...)(
  S fmt,
  lazy T args
) nothrow;

Parameters

NameDescription
level The log level for the logged message
fmt See http://dlang.org/phobos/std_format.html#format-string
args Any input values needed for formatting

Example

void test() nothrow
{
	logInfo("Hello, World!");
	logWarn("This may not be %s.", "good");
	log!(LogLevel.info)("This is a %s.", "test");
}
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License