Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize Build Option for Log Level Setting in build.zig #26

Open
hendriknielaender opened this issue Jan 26, 2024 · 0 comments
Open

Utilize Build Option for Log Level Setting in build.zig #26

hendriknielaender opened this issue Jan 26, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@hendriknielaender
Copy link
Owner

Description

This feature request is to utilize a build option in build.zig to set the log level dynamically. Currently, the build.zig file includes the following code snippet:

options.addOption(std.log.Level, "log_level", b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info);

This code suggests an intention to allow the user to specify a log level at build time, but it seems this functionality is not fully implemented or utilized.

Suggested Implementation

  • Enhance Build Script: Modify the build.zig script to fully support changing the log level through the build options.
  • Documentation: Update the project documentation to guide users on how to use this build option to change the log level.
  • Testing: Ensure that changing the log level through build options is tested and works as expected.

Benefits

  • Flexibility: This feature will allow users to dynamically set the log level at build time, offering greater flexibility for different environments (e.g., development, staging, production).
  • Convenience: It simplifies the process of changing log levels without needing to alter the source code directly.
@hendriknielaender hendriknielaender added enhancement New feature or request good first issue Good for newcomers labels Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant