Logging - TrueCommerce/CloudFtpBridge GitHub Wiki
Cloud FTP Bridge writes log files to %PROGRAMDATA%\TrueCommerce\PSGEngineering\CloudFtpBridge\v3\Logs
(typically expands to C:\ProgramData\TrueCommerce\PSGEngineering\CloudFtpBridge\v3\Logs
).
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.
-
Open
appsettings.Production.json
in a text editor. -
Under the Logging section, change the Default and CloudFtpBridge properties to the desired log level.
-
Restart the
CloudFtpBridge
service.
{
"DetailedErrors": false,
"Logging": {
"LogLevel": {
"Default": "Warning",
"CloudFtpBridge": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
}
}
{
"DetailedErrors": false,
"Logging": {
"LogLevel": {
"Default": "Debug",
"CloudFtpBridge": "Debug",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
}
}
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
- Possible Values:
-
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
orfalse
- This setting should not be changed. It allows the UI process and the polling service process to write to the same log file simultaneously.
- Possible Values:
-
UseRollingFiles:
true
- Possible Values:
true
orfalse
- 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.
- Possible Values: