Function logInfo
Logs a message.
Prototypes
void log(LogLevel level, string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logTrace(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logDebugV(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logDebug(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logDiagnostic(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logInfo(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logWarn(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logError(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow; void logCritical(string file = __FILE__, int line = __LINE__, T...)(string fmt, auto ref T args)( string fmt, auto ref ReturnTypeString.T args ) nothrow;
Parameters
Name | Description |
---|---|
level | The log level for the logged message |
fmt | See http://dlang.org/phobos/std_format.html#format-string |
Examples
logInfo("Hello, World!"); logWarn("This may not be %s.", "good"); log!(LogLevel.info)("This is a %s.", "test");
Authors
Sönke Ludwig
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.