NurApiLog(Int32, FuncString) Method

Writes text to log for specified level.

Definition

Namespace: NurApiDotNet
Assembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
C#
public void Log(
	int level,
	Func<string> txt
)

Parameters

level  Int32
Set logging level mask: LOG_VERBOSE,LOG_ERROR,LOG_USER,LOG_DATA,LOG_ALL
txt  FuncString
Func delegate that returns text line to log. Delegate is only called if log level is enabled

Example

C#
hNur.Log(NurApi.LOG_ERROR, () => "Error: {something}");

See Also