Documentation Center

Configuring logging for Access Management

By default, the log level is set to Warn, which means that warnings, as well as critical and non-critical errors, are logged. To change the detail level of the log messages, modify the application settings configuration file, appsettings.json. To configure any other aspect of logging, modify the file nlog.config in the same folder.

Procedure

  1. Go to the bin\ subfolder of the root folder where the Access Management service is installed.
  2. To set the detail level of the log being produced, do the following:
    1. Open appsettings.json for editing.
    2. In the Logging section, within the LogLevel subsection, find the Default property and set its value to one of the following values:
      Log levelDescription
      TraceLog informational messages with the highest level of detail about the application's lowest-level activity.
      DebugLog fine-grained informational messages about low-level functionality being executed, intended to discover the source of a problem.
      InformationLog warnings, errors of both types, and informational messages.
      WarningLog warnings as well as errors of both types.
      ErrorLog critical errors and normal errors.
      CriticalLog only critical errors.
    3. Save and close appsettings.json.
  3. Open NLog.config for editing.

    By default, log messages are logged both to console and to file, and the file target is a rolling log, producing a new file every 1,000,000 bytes. You can modify this behavior by changing the following settings:

    • Logging locations
    • Log file names
    • Log message format

    For more information on all NLog settings and features, refer to the NLog configuration file documentation.