tempesta icon indicating copy to clipboard operation
tempesta copied to clipboard

Morgana future/fix/configuration parsing error mmap log buffer size

Open MorganaFuture opened this issue 7 months ago • 0 comments

What This PR introduces a JSON-based configuration system for the Tempesta FW logger daemon with:

  • A dedicated TfwLoggerConfig class for logger settings
  • JSON configuration file support via Boost's property_tree
  • Two operation modes: daemon (background) and handle (foreground for debugging)
  • Support for a logger_config attribute in the access_log directive
  • Updates to Tempesta scripts for compatibility
  • Backward compatibility with existing configuration
  • Add tests

Why The Tempesta logger configuration is currently scattered across multiple parameters, making it hard to manage. A dedicated JSON file provides a cleaner approach that separates logger settings from the main configuration. This structured format improves error handling and simplifies troubleshooting with the new foreground mode.

Links https://github.com/tempesta-tech/tempesta/issues/2313

MorganaFuture avatar May 21 '25 14:05 MorganaFuture