mountpoint-s3 icon indicating copy to clipboard operation
mountpoint-s3 copied to clipboard

Logging errors in a structured format

Open vladem opened this issue 1 year ago • 0 comments

Description of change

Adds --event-log-directory CLI flag. If specified all of the logs originating from mountpoint_s3::logging::event_log will be written as \n-separated json's in this file. We do this logging in fuse_error! and fuse_unsupported! macros for failed fuse operations.

Note that the application log will also contain an additional log line per failed fuse operation with TRACE level even if the feature flag / cli option are not provided.

Relevant issues: https://github.com/awslabs/mountpoint-s3/issues/721

Does this change impact existing behavior?

If compiled without event_log feature flag there should be no changes to existing behaviour.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

vladem avatar Jun 20 '24 12:06 vladem