Is this really the version you are looking for? Kentico Xperience 11 Documentation is no longer updated. Use the switcher in the header to choose your product version.
The event log stores information about all events that occur in the system. It is useful to view logged information if unwanted behavior occurs in the system and you want to find out where the problem originates or get additional details.
To view the event log, open the Event log application.
If you click Display event () next to an event, the system displays a dialog with full details about the event.
You can configure the following event log settings:
You can configure the following settings for the event log in Settings -> System:
Setting location | Description |
|---|---|
Event log size | Limits the maximum number of events stored in the Event log.
|
Log metadata changes | If enabled, changes of object and page metadata (i.e. when an object or a page is created, edited or deleted) are logged in the Event log. |
Log to database | Indicates if events are logged to database. Doesn't override Event log size set to 0. |
Log to filesystem | If enabled, the system writes the event log into the CMS\App_Data\logEvents.log file on the server's file system. Doesn't override Event log size set to 0. |
Log to trace | Indicates if events are logged to trace. Doesn't overwrite Event log size set to 0. |
Use EventLog trace listener | Indicates if the system logs events in your Windows Event Viewer. Use the Modify feature of the Kentico installer, if you haven't turned on the Registration of Kentico in Windows Event Log option when installing Kentico. |
You can also configure the event log by adding keys to the appSettings section of your application's web.config file. The keys work in combination with the settings listed above. For more information, see Reference - Web.config application keys.
You can enable logging of Page not found exceptions in the event log. To do so:
To allow users to work with the event log, configure permissions for your website's roles:
Open the Permissions application.
Select permissions for Modules and the Event log.
Assign the following permissions to roles:
You can set up Kentico to log application events in trace. You can then implement your own listener, such as the TextWriterTraceListener (opens in a new tab) or use the out-of-the-box Kentico functionality to log events into the Windows Event Viewer.
To enable logging of system events to trace:
Kentico now logs system events to trace. You can now implement your own listener, such as the TextWriterTraceListener (opens in a new tab).
You can set up Kentico to log application events in the Windows Event Viewer. Note that to do that, Kentico uses the EventLogTraceListener (opens in a new tab).
Requirements for IIS 8.5 and newer
If your website is hosted on IIS 8.5 or newer, you need to enable sending of logging information to Event Tracing for Windows (ETW). For more information, see the Logging to Event Tracing for Windows in IIS 8.5 (opens in a new tab) article (select the ETW event only or Both log file and ETW event option for the Log Event Destination in IIS).
The installer registers Kentico in the Windows Event Log.
Kentico now logs system events to both the Kentico event log and Windows Event Viewer.
You can configure the system to automatically send e-mail notifications whenever errors occur in the application.
You can find an API example of logging events into the event log in Designing secure error messages. More examples are provided in the API examples documentation.
If you wish to disable logging for events of a specific type, you need to use custom code. See Customizing event logging for more information.