ozhera icon indicating copy to clipboard operation
ozhera copied to clipboard

[Feature Request] Add Toggle Switch for Immediate Log Collection

Open wtt40122 opened this issue 8 months ago • 3 comments

Issue Description

Currently, our logging system lacks a feature that allows users to enable or disable immediate log collection. This can be particularly useful in scenarios where we need to control the log data flow for performance tuning or during specific operational windows.

Proposed Feature

  • Introduce a configuration switch that can be used to toggle the immediate collection of logs.
  • The switch should be easily accessible and configurable through the system's settings or configuration files.

Use Cases

  1. Performance optimization during periods of high traffic where immediate log collection might impact system responsiveness.
  2. Temporarily disabling log collection for environments where logs are not immediately required, such as during overnight batch processing.

Implementation Details

  • The switch could be implemented as an environment variable, a system property, or a setting in the UI if applicable.
  • The system should read this switch at startup and periodically check for changes during runtime to adjust log collection behavior accordingly.

Benefits

  • Provides greater control over log data management.
  • Enhances system performance by allowing selective log collection.
  • Simplifies operations by providing an easy-to-use toggle for log collection.

wtt40122 avatar Jun 20 '24 07:06 wtt40122