Logging
Note
For instructions regarding logging for versions up to v5.24, see legacy logging instructions.
ImageVault uses standard .net logging capabilities. As default, the log4net logging provider is active.
Configuring
Configuration of the logging capabilities can be done in different places.
Default logging configuration
As default, the appsettings.json file can be used to control the logging configuration. We supply a standard configuration that logs warnings and above. If you change this file, note that the upgrade process will overwrite this.
log4net specific configuration
As default, the log4net logging module is loaded and is configured using the log4net.config file. If this file is missing, we supply a default logging configuration that's named log4net_default.config that will be overwritten by the upgrade process.
If you would like to control the configuration, copy the default and name it log4net.config and it will be the ruling config file upon next application start.
Instructions on how to configure log4net using the config file can be found on Microsoft.Extensions.Logging.Log4net github page or on the log4net main configuration page.