Error diagnostics for Windows 10
- Last UpdatedFeb 17, 2025
- 1 minute read
The IEventViewerLog interface from the UUWP SDK exposes methods to enable logging. It enables logging of Error, Warning and DebugInformation.
void LogDebugInformation(string messageFormat, params object[] args);
void LogDebugInformation(Exception ex, string messageFormat, params object[] args);
void LogError(Exception ex, string messageFormat, params object[] args);
void LogError(string messageFormat, params object[] args);
void LogWarning(Exception ex, string messageFormat, params object[] args);
Any one of the above methods can be used for logging. For example:
eventViewerLog.LogDebugInformation("Connect Trigger {0}", intermecBarcodeReader.IsConnected);
To view logs:
-
Open event viewer in Windows
-
Open Application and services log
-
Search for "AVEVA Mobile Operator Plugin Logger" and open
-
See the log detail