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

Adding metadata after printing a new line in Trivially Copyable structures #534

Closed
tarun-t opened this issue Aug 23, 2024 · 1 comment · Fixed by #535
Closed

Adding metadata after printing a new line in Trivially Copyable structures #534

tarun-t opened this issue Aug 23, 2024 · 1 comment · Fixed by #535

Comments

@tarun-t
Copy link

tarun-t commented Aug 23, 2024

Current Behavior

When using an operator<< overload to log user-defined types, the metadata (timestamp, log level, etc.) is only logged for the first line of output. Subsequent lines produced by the custom operator do not include this metadata.

Desired Behavior

All lines of output produced by an operator<< overload should include the appropriate metadata, maintaining consistency with single-line log entries.

@odygrd odygrd linked a pull request Aug 24, 2024 that will close this issue
@odygrd
Copy link
Owner

odygrd commented Aug 24, 2024

I've implemented this for the next release. It introduces an approximate 1.8% overhead in backend thread processing, which isn't that bad, so I'm enabling it by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants