≈ the.bay.news

Log scopes in library project

Ziggit
Log scopes in library project
I’m working on a project that’s meant to be consumed as a library by other Zig projects. Since I want it to be straightforward for any consumers of my library to control logging from my library, I’m using a single log scope for the whole project. But this is kind of a bummer, because I’d like to be able to turn on and off logging for different components in my codebase as I’m debugging. I’d prefer to have three or four different log scopes, one for each major component in my library. Hierarchi...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.