Logging - TrueCommerce/CloudFtpBridge GitHub Wiki

Log File Location

Cloud FTP Bridge writes log files to %PROGRAMDATA%\TrueCommerce\PSGEngineering\CloudFtpBridge\v3\Logs (typically expands to C:\ProgramData\TrueCommerce\PSGEngineering\CloudFtpBridge\v3\Logs).

Changing Logging Level

By default, the bridge will only log Warning and Error events to the log. If you are troubleshooting an issue and need to log Debug and Information events, you can modify appsettings.Production.json (typically found in C:\Program Files\True Commerce\PSG Engineering\Cloud FTP Bridge) to do so.

  1. Open appsettings.Production.json in a text editor.

  2. Under the Logging section, change the Default and CloudFtpBridge properties to the desired log level.

  3. Restart the CloudFtpBridge service.

Default Configuration

{
  "DetailedErrors": false,
  "Logging": {
    "LogLevel": {
      "Default": "Warning",
      "CloudFtpBridge": "Warning",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Warning"
    }
  }
}

Example "Debug" Configuration

{
  "DetailedErrors": false,
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "CloudFtpBridge": "Debug",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Warning"
    }
  }
}

Advanced Configuration

For more information on how to adjust log levels, see the Microsoft ASP.NET Core documentation.


v2.7.0 and earlier

Cloud FTP Bridge writes log files to %PROGRAMDATA%\TrueCommerce\PSGEngineering\Logging (typically expands to C:\ProgramData\TrueCommerce\PSGEngineering\Logging). Logging is configured in the Logging section of the appsettings.json file found in the Cloud FTP Bridge installation directory. Below are the default settings:

  • MinimumLogLevel: Debug

    • Possible Values: Verbose, Debug, Information, Warning, Error, Fatal
  • RollingFilePrefix: CloudFtpBridge

    • Possible Values: Any valid Windows file name string.
    • This setting determines the first portion of the log file name (differentiates log files from other PSG Engineering apps).
  • UseMultiProcessLogging: true

    • Possible Values: true or false
    • This setting should not be changed. It allows the UI process and the polling service process to write to the same log file simultaneously.
  • UseRollingFiles: true

    • Possible Values: true or false
    • This setting enables or disables file logging.
    • NOTE: A new log file will be created each day and up to 31 days worth of log files will be kept before they are deleted.
⚠️ **GitHub.com Fallback** ⚠️