Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is the documentation for the upcoming **Umbraco 11.1** release. For informa
**New documentation in the RC:**

* [Maintenance Page](umbraco-cms/tutorials/custom-error-page.md#maintenance-page)
* [Logging Settings](umbraco-cms/reference/configuration/loggingsettings.md)
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Umbraco CMS</strong></td><td>Everything you need to know when building your Umbraco website.</td><td></td><td><a href="getting-started/images/flexible_Email_hero_780x405px.png">flexible_Email_hero_780x405px.png</a></td><td><a href="umbraco-cms/">umbraco-cms</a></td></tr><tr><td><strong>Umbraco Cloud</strong></td><td>Learn how to get started with your Umbraco Cloud project.</td><td></td><td><a href=".gitbook/assets/Umbraco Cloud Update - Email hero - White - 780x405px@2xt.jpg">Umbraco Cloud Update - Email hero - White - 780x405px@2xt.jpg</a></td><td><a href="umbraco-cloud/getting-started/">getting-started</a></td></tr><tr><td><strong>Umbraco Heartcore</strong></td><td>Learn how to get the most out of your headless Umbraco solution.</td><td></td><td><a href="getting-started/developing-websites-with-umbraco/images/Headless_Email_hero_780x405px.png">Headless_Email_hero_780x405px.png</a></td><td><a href="umbraco-heartcore/">umbraco-heartcore</a></td></tr></tbody></table>
Expand Down
23 changes: 15 additions & 8 deletions umbraco-cms/reference/configuration/loggingsettings.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
---
versionFrom: 9.0.0
versionTo: 10.0.0
meta.Title: "Umbraco Logging Settings"
meta.Description: "Information on the logging settings section"
description: "Information on the logging settings section."
---

# Logging settings

The majority of logging related configuration has been moved to the Serilog configuration see [Serilog settings](serilog.md) for more information.

This settings section allows you to configure the max log age for the internal audit log scrubbing. The default maximum age for the internal audit log is 24 hours, however if you want to change this duration, you can with the `"MaxLogAge"` key, like so:

The following configuration is available in the Logging settings:

```json
"Umbraco": {
"CMS": {
"Logging": {
"MaxLogAge": "2.00:00:00"
"MaxLogAge": "2.00:00:00",
"Directory": "~/CustomLogFileLocation"
}
}
}
```

This will increase the maximum age of the entires in the audit log to 48 hours (2 days).
## MaxLogAge

This setting allows you to configure the maximum log age for the internal audit log scrubbing. The default maximum age for the internal audit log is 24 hours. Change the duration with the `MaxLogAge` key in the Logging settings.

To increase the maximum age of the entries in the audit log to 48 hours (2 days), set the value to `2.00:00:00`.

## Directory

By default, all log files are saved to the `umbraco/Logs` directory. You can define a custom directory for your log files by using the `Directory` key in the Logging settings.

Set the value to `~/LogFiles` to add all log files to a `LogFiles` directory in the root of the file structure.