Skip to content

std.log: (breaking) remove scope parameter from logging functions - #6046

Merged
andrewrk merged 3 commits into
ziglang:masterfrom
heidezomp:std-log-scoped-part2
Aug 17, 2020
Merged

std.log: (breaking) remove scope parameter from logging functions#6046
andrewrk merged 3 commits into
ziglang:masterfrom
heidezomp:std-log-scoped-part2

Conversation

@heidezomp

@heidezompheidezomp commented Aug 13, 2020

Copy link
Copy Markdown
Contributor

The logging functions in std.log don't take a scope parameter anymore, but use the .default scope. This is a follow-up to PR #6039 and a further implementation of #5943.

I also updated the standard library (currently only the general purpose allocator uses logging) as well as stage2 to use scoped logging. I tried to run test-std and test-stage2 tests but my old laptop hung during semantic analysis while doing so, so I'm relying on CI here.

Implemented as per @nmichaels' suggestion: #6039 (comment)

The logging functions in std.log don't take a scope parameter anymore,
but use the .default scope. To provide your own scope, use the logging
functions in std.log.scoped(.some_other_scope).
As per nmichaels' suggestion: #6039 (comment)
Comment threadsrc-self-hosted/link.zig
@heidezomp

This comment has been minimized.

@heidezompheidezomp reopened this Aug 15, 2020
@andrewrk
andrewrk merged commit 624e643 into ziglang:masterAug 17, 2020
@andrewrk

Copy link
Copy Markdown
Member

Thanks for the follow-up!

@heidezomp
heidezomp deleted the std-log-scoped-part2 branch August 18, 2020 11:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@heidezomp@andrewrk