Logging errors in a structured format
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).