HelperFunctionsLoggingWriteLog Method (String, Boolean) |
This method enable the programmer to write in an Log the message passed as argument. This version also has a boolean value that allows the programmer to log said message if true, or don't if it's false. Passing a static boolean set somewhere else in the code would spare commenting several calls (that wouldn't be efficient of course).
If you have not called InitializeLog() to create or to open a specific logfile, a generic one called "LogFile.log" will be created or opened.
Namespace:
AHL
Assembly:
AHL (in AHL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void WriteLog(
string Message,
bool debug
)
Public Shared Sub WriteLog (
Message As String,
debug As Boolean
)
public:
static void WriteLog(
String^ Message,
bool debug
)
static member WriteLog :
Message : string *
debug : bool -> unit
Parameters
- Message
- Type: SystemString
This is the Error Message which needs to be logged. - debug
- Type: SystemBoolean
If this is true, this message will be logged. If this is false, it won't.
See Also