Skip to main content
ZenHub houses documentation to support you if you’re using Contensis Classic. Contensis Classic includes our WYSIWYG and templating features. If you’re working with a newer version of Contensis, is your go-to place to find anything Contensis-related when building with content types.

Configure and manage logs in Contensis

While Contensis logs and diagnostic information is gathered into a single location, logging levels are still configured against each website and services.

Logging levels

A log level is used to define the scope of the log and to help with analysing logging information. There are five log levels:

  • DEBUG – used for development and testing.
  • INFO – used for logging state changes; progress of user stories and other processes.
  • WARN – used for events which indicate irregular circumstances, but for which there is a clearly-defined recovery strategy and will have no impact on system availability.
  • ERROR – used for logging general error information.
  • FATAL – used for marking errors which require special attention, or which have no recovery strategy. Also used for marking catastrophic environment issues.

Where are logging levels defined?

Logging levels are set in a config file for each service as a piece of XML. The XML will look like this:

<add key="Contensis_DebugInfoLevel" value="Error" />

Config file locations

CMS UI – [CMS Install Directory]\engine\web.config (typically this would be something like D:\Contensis\engine\web.config)

Published website – From within the CMS UI, you need to edit the CMS config listed against each publishing server in the Management Console. Any changes will need to be published to the website.

Services – Each service has a corresponding config file which can be found on your services server in C:\Program Files (x86)\Contensis\contensis services, (e.g. If you wanted to update the logging level for the publisher you would edit the ContensisPublishingService.exe.config file). Once you have made the change, you need to restart the corresponding Windows service.

Services and associated config
Service Name Config File
Contensis Command Processor Service ContensisCommandProcessorService.exe.config
Contensis Content Modification Service ContensisContentModificationService.exe.config
Contensis Content Synchroniser Service ContensisContentSynchroniserService.exe.config
Contensis Database Replication Service ContensisDatabaseReplicationService.exe.config
Contensis Directory Services Service ContensisDirectoryServicesService.exe.config
Contensis FTP Cleaner Service ContensisFtpCleanerService.exe.config
Contensis Indexing Service ContensisIndexingService.exe.config
Contensis Notifications Service ContensisNotificationsService.exe.config
Contensis PackageManager Service ContensisPackageManagerService.exe.config
Contensis Publishing Service ContensisPublishingService.exe.config
Contensis Quality Assurance Service ContensisQualityAssuranceService.exe.config
Contensis Task Scheduler Service ContensisTaskSchedulerService.exe.config

Logs storage

By default, all errors are logged to the CMS via a webservice and are then stored in the CMS SQL database in the following tables:

  • L_Log – Stores the main details about the log entry
  • LDT_LogData – Stores any custom data which has been recorded with a log
  • LC_LogComponent – Stores the components which have been recorded with the log for searching purposes


If the web service is unavailable then logs are stored on disk at: c:\programdata\contensis\logs. Each log is stored in an individual folder for each application.

Once the web service becomes available, the logs should be picked up and stored in the SQL database. The log files on disk are then automatically deleted.

Disabling logging to the webservice from a front-end site

If you do not want your front-end site logging to the CMS via the web service, this can be switched off and the logs will be saved to disk instead.

  1. Go to the Management Console, select Project Overview.
  2. Press Publishing Servers and locate the publishing server you want to disable logging for.
  3. Click on CMS Config and locate the following value: 
    <add key="Contensis_EnableLoggingToWebService" value="true" />.
  4. Set the value to false and press Save & Publish. The CMS config file will be published.

Common Questions

How often do logs get purged from the system?
Logs are purged daily by the maintenance script.
When does the purge occur?
The maintenance script runs at the start time set against the Maintenance_StartTime global setting in the Management Console.
What is the retention period of logs?
The default retention is 14 days. This period can be updated by editing the Log_Retention_Period global setting in the Management Console.