You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, zvm does not have a dynamic log level management system, which can lead to either an overload of verbose log information or a scarcity of necessary debug data.
Proposed Feature
Implement a log level management system in zvm's build.zig configuration. This system will allow for the adjustment of log verbosity through the build process, making it easier to manage application logging without modifying the source code.
Implementation Details
Log Level Setting: Introduce a build option in build.zig to specify the default log level, which can be overridden by environment variables or command-line arguments at runtime.
Build Options:
Add log level options similar to ZLS, allowing levels such as DEBUG, INFO, WARNING, ERROR, and FATAL.
Example: exe_options.addOption(std.log.Level, "log_level", b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info);
Runtime Adjustability: Developers can adjust the log level on the fly, affecting the logging output without restarting the application or changing the code.
Use Case Specific Log Levels: Different parts of the application might have different appropriate default log levels, which can be configured individually.
Benefits
Improved Debugging: Easier to isolate issues with the ability to increase log levels in areas of interest without being overwhelmed by logs from other parts of the system.
Performance: Lower default log levels in performance-sensitive parts of the application, reducing the logging overhead.
Flexibility: Easier to manage and adjust logging behavior based on the environment, such as development, testing, and production.
The text was updated successfully, but these errors were encountered:
Currently, zvm does not have a dynamic log level management system, which can lead to either an overload of verbose log information or a scarcity of necessary debug data.
Proposed Feature
Implement a log level management system in zvm's
build.zig
configuration. This system will allow for the adjustment of log verbosity through the build process, making it easier to manage application logging without modifying the source code.Implementation Details
build.zig
to specify the default log level, which can be overridden by environment variables or command-line arguments at runtime.exe_options.addOption(std.log.Level, "log_level", b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info);
Benefits
The text was updated successfully, but these errors were encountered: