# More detailed Logging

**URL:** <https://forum.rclone.org/t/more-detailed-logging/42846>\
**Category:** Feature\
**Created:** [November 13, 2023, 8:43pm UTC](https://forum.rclone.org/t/more-detailed-logging/42846 "2023-11-13T20:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tb582](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@tb582](https://forum.rclone.org/u/tb582)\
**Post date:** [November 13, 2023, 8:43pm UTC](https://forum.rclone.org/t/more-detailed-logging/42846/1 "2023-11-13T20:43:19Z")

</div>

#### Problem:

Currently, Rclone's debug logs indicate when files are excluded, but they do not specify the exact reason for the exclusion. This lack of detail makes it challenging for users to determine whether a file is excluded due to path filters, `max-age` filters, or other reasons. This can lead to difficulties in troubleshooting and understanding Rclone's behavior, especially in complex synchronization setups.

#### Proposed Feature:

I propose enhancing Rclone's logging capabilities to include detailed reasons for the exclusion of files and directories. Specifically, the debug logs should explicitly state whether a file is excluded due to not matching include rules, being caught by exclude rules, or not meeting criteria such as `max-age`.

#### Implementation Suggestion:

When a file or directory is excluded, the log entry should include a tag or a clear message stating the specific filter or condition leading to its exclusion. For example:

- `Excluded (Path Filter): [file/directory path]`
- `Excluded (Max-Age Filter): [file/directory path]`
- `Excluded (Size Filter): [file/directory path]`

This enhancement would involve modifying the logging system to track the reason for each file's exclusion and include this information in the debug output.

#### Benefits:

- **Improved Troubleshooting** : Users will be able to quickly identify why a particular file was excluded, making it easier to debug and adjust their Rclone configurations.
- **Enhanced Transparency** : Providing more detailed logs will increase transparency in how Rclone processes files according to user-defined rules.
- **Time-Saving** : This feature will save users time by reducing the need for trial and error in understanding Rclone's behavior.

I believe this enhancement will significantly benefit all Rclone users, especially those dealing with complex synchronization tasks and detailed filtering rules.

---

<div class="post-metadata">

**Author:** ![tb582](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@tb582](https://forum.rclone.org/u/tb582)\
**Post date:** [November 18, 2023, 1:05am UTC](https://forum.rclone.org/t/more-detailed-logging/42846/2 "2023-11-18T01:05:19Z")

</div>

@ncw what say you ?? 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 17, 2024, 1:05am UTC](https://forum.rclone.org/t/more-detailed-logging/42846/3 "2024-01-17T01:05:49Z")

</div>

Closed on January 17, 2024, 1:05am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
