README .NET diagnostics.logbook¶
This .NET sample is logging messages to the logbook of the ctrlX CORE.
Introduction¶
The project diagnostics.logbook provides a simple application example to log messages to the logbook of the ctrlX CORE.
Description¶
The implementation shows different ways to write messages to ctrlX logbook.
- The class KernelLoggerSample writes kernel log messages with the linux system command 'logger'.
- The class MicrosoftLoggerSample uses the nuget package extension Microsoft.Extensions.Logging to write logs to logbook.
Prerequisites¶
Please read the common .NET docs here, first.
Debug and Run¶
Launch the app with the debugger attached by pressing F5.
Build and Install¶
- Launch Visual Studio Code
- Click on the Remote Explorer from the menu.
- Choose Open Folder.
- Open the directory diagnostics.logbook.
- Build and install snap as described here.
-
Check the output using Diagnostics:
-
Login into your ctrlX
- Navigate to Diagnostics -> Logbook
- Click Settings on the right top corner
- Enable Show system messages
- Navigate to Filter -> Units and check your snap.sdk-net-logbook.app.service
- Now you should the see the app output diagnostics.
-
Press Refresh to update.
-
If you have root permissions, you can also watch the output on any ssh console with the command:
sudo snap logs sdk-net-logbook.app -f | more
Screenshot¶
Install the App¶
Login into ctrlX and install the App (Apps).
Gratulations - We're finished - Let's start coding¶
Support¶
Developer Community¶
Please join the Developer Community
SDK Forum¶
Please visit the SDK Forum
Issues¶
If you've found an error in these sample, please file an issue
License¶
SPDX-FileCopyrightText: Bosch Rexroth AG SPDX-License-Identifier: MIT