Skip to content

Conversation

@kukushechkin
Copy link
Contributor

Enable compile-time elimination of log levels to achieve zero runtime overhead for logs that will never be needed in production.

Motivation:

In production deployments, applications often know in advance which log levels will never be needed. For example, a production service typically only needs warning and above, while trace and debug levels are exclusively useful during development. Currently, even with the log level set to .warning at runtime, the code for trace and debug statements still exists in the binary and incurs overhead.

Modifications:

The "SLG-0002: Compile-time log level elimination using traits" proposal doc added.

Result:

The proposal is ready for review.

@kukushechkin kukushechkin added the semver/none No version bump required. label Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants