NetServer Diagnostics element

Configuration of diagnostic logging tools.

<Diagnostics>
  <add key="LogFailureAudit" value="false" />
  <add key="LogSuccessAudit" value="false" />
  <add key="LogToEventLog" value="false" />
  <add key="LogToSuperOffice" value="false" />
  <add key="LogToFile" value="true" />
  <add key="LogToTrace" value="false" />
  <add key="EnableScaffolding" value="false" />
  <add key="LogFolder" value="c:\temp\" />
  <add key="LogLongQueries" value="false" />
  <add key="LongQueryThreshold" value="5000" />
  <add key="LogServiceCalls" value="false" />
  <add key="LoggedServices" value="" />
  <add key="LogMail" value="false" />
  <add key="LogMailFolder" value="c:\temp\" />
  <add key="LogLongQueriesAsXml" value="false" />
</Diagnostics>
NameDescriptionDefault
AppInsightInstrumentationKeyIdentifier of resource that you want to associate your telemetry data with.
CheckBrowserVersionDetermines whether browser version information be sent back to SuperOffice for compatibility verification.
EnableQAAttributesIf true, the SCIL components render additional attributes to help with automated UI tests.
EnableResourceTracerEnable tracing of resource usage per operation to trace.
EnableScaffoldingWhen this option is enabled, extra logging is performed. It is strongly recommended to have this option enabled during development and testing. Huge log files are generated when this option is enabled! Turn this off when not needed in prod.off
EnableStackTracingShould stack traces be collected by various events?
LogDebugProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.false
LogDebugFromProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.
LogErrorProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.true
LogEventRecorderInclude a snapshot of the event recorder in all log entries.
LogFailureAuditLog failed authentications?true
LogFolderFolder (for example UNC path) where the log file is to reside. Note that the owner of the process needs to have access to manipulate files in this folder. The Documents/Impersonation settings apply!
LoggedServicesList of services to be logged. If not blank, a comma-separated list of service names (without the Agent suffix, for instance: BLOB, Appointment).Blank = all
LogInformationProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.false
LogInformationFromProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.
LogLongQueriesShould long-running queries be logged in textual form to a special file?false
LogLongQueriesAsXMLShould long-running queries be logged to a special file (Query_year.month.day.log) in XML serialized format, for later analysis and reruns using the QueryWorkbench tool.
LogLongQueriesToPluginsShould long-running queries be logged to SoLoggerPlugins?false
LogMailLog mail server communication.
LogMailFolderFolder to use for mail logging. The owner of the process must have access to update files in this folder.
LogServiceCallsShould calls to the service layer be logged?
LogSuccessAuditLog successful authentications (access granted).false
LogTimesLog times to file.
LogToEventLogLog to the OS event log? (Information Level Ignored)true
LogToFileLog to a LogFile.false
LogToSuperOfficeLog to SuperOffice Research and Product Development (Online through a web service). If you experience poor performance during login, set this to False.false
LogToTraceLog to a Trace that can be listened to by a System.Diagnostics.TraceListener.Default.false
LogTraceProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.false
LogTraceFromProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.
LogWarningProperty deprecated from version 10.2.1. Use Microsoft.Extensions.Logging.LogLevel in appsettings.json.false
LongQueryThresholdThreshold for logging a long-running query, in milliseconds. Queries that execute in less than this time are not logged as long-running. The time is from the moment the SQL text is sent to the database until the first row (for a select) or the ‘nn rows affected’ return value is received.2500
ShowExceptionsFromBackendIf true, then the innermost exception message from the backend will be shown in the GUI, directly when the error happens.
UsageStatUrlURL for reporting Usage Statistics.
UserSyncUrlURL for synchronizing user information.
🛈 Note
Logging is now done through Logging plugins - so there may be additional configuration needed, depending on your logging plug-in.

See the NetServer Core reference for details about handling this programmatically.