Configure Logging (Optional)
v4.3.0
Last updated
Was this helpful?
v4.3.0
Last updated
Was this helpful?
Application logging refers to recording and storing information about the events and activities that occur within a software application. It involves capturing relevant data, such as error messages, warnings, user interactions, and system events, and storing them in a log file or database.
Application logging is essential for troubleshooting and debugging, as it helps identify and analyze issues that may arise during the application's execution. It also provides valuable insights into the application's performance, usage patterns, and security.
Serilog is the diagnostic logging library used in the XMPro suite, and the following logging outputs are supported:
Application Insights plus Telemetry (Added v4.3.6)
Repeat these steps for any of the XMPro products (Application Designer, Data Stream Designer, and AI XMPro) - except Subscription Manager and Stream Hosts.
Navigate to the IIS location where the XMPro product has been installed.
Open the appsettings.json file.
Set enableLogging
in the featureFlags
object to true.
Save the file.
Restart the XMPro product service.
This utilizes the Serilog file sink. See Serilog sinks file documentation for a complete set of configuration options.
Below are examples for each XMPro Product.
Open the web.config file.
Add the Serilog keys to the appSettings
element.
Save the file and restart the Subscription Manager service.
Changed in v4.4.0
Close or stop the Stream Host.
Navigate to the file location where the Stream Host has been installed.
Open the appsettings.json file.
Add the “File Logging" Serilog configuration.
Save the file and restart or reopen the Stream Host.
Add the environment variables to the platform / service running the Stream Host.
Restart the Stream Host.
Repeat these steps for all the XMPro products except Subscription Manager and Stream Hosts: App Designer, Data Stream Designer, and AI XMPro.
Open the appsettings.json file.
Add the “File” Serilog configuration inside the WriteTo array.
Save the file and restart the XMPro product service
This utilizes the Serilog application insights sink. See Serilog sinks file for Application Insights for a complete set of configuration options.
Below are the steps for an example of how it can be used in App Designer, Data Stream Designer, Stream Hosts, and AI XMPro:
Open the appsettings.json file.
Add the “ApplicationInsights” Serilog configuration inside the WriteTo array.
Save the file and restart the XMPro product service or Stream Host.
This utilizes the Serilog application insights sink to write events to Microsoft Azure Application Insights and collect valuable Telemetry data.
Below are the steps for an example of how it can be used in App Designer, Data Stream Designer, Stream Hosts, and AI XMPro:
Set enableApplicationInsightsTelemetry
in the featureFlags
object to true - the same as you already did here for enableLogging
.
Open the appsettings.json file.
Add the “ApplicationInsights” configuration.
Save the file and restart the XMPro product service or Stream Host.
This utilizes the Serilog datadog sink. See Serilog Sinks File for Datadog for a complete set of configuration options.
Below are the steps for an example of how it can be used in App Designer, Data Stream Designer, Stream Hosts, and AI:
Open the appsettings.json file.
Determine the site parameter by checking here.
Get the endpoint/URL and port number by checking here.
Add the “DatadogLogs” Serilog configuration inside the WriteTo array.
Save the file and restart the XMPro product service or Stream Host.