Log warnings to the configured log target for WARN level (NLog.config).
Optionally log all warnings to mail.
If mail is used the WarnMailTo argument of the job must be set, see
SysJobArguments.
Namespace:
Nsoft.Sys.Interfaces
Assembly:
Nsoft.Sys.Interfaces (in Nsoft.Sys.Interfaces.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub Warn ( _
text As String, _
mail As Boolean _
) |
C# |
---|
void Warn(
string text,
bool mail
) |
Visual C++ |
---|
void Warn(
String^ text,
bool mail
) |
JavaScript |
---|
function warn(text, mail); |
Parameters
- text
- Type: System..::.String
- mail
- Type: System..::.Boolean
See Also