Skip to content

Conversation

@zmerp
Copy link
Member

@zmerp zmerp commented Aug 16, 2024

Note: I thought about using the tracing crate, but for now there are no strong reasons to do it. Could be slightly cleaner to use attributes for function scopes. In any case the switch can be done at a later moment.

@zmerp
Copy link
Member Author

zmerp commented Aug 16, 2024

Should I also populate logs in this PR for some or all of the groups I implemented?

@ShootingKing-AM
Copy link
Member

Will this be available in "release" mode built server/client_core ?

@zmerp
Copy link
Member Author

zmerp commented Aug 16, 2024

The groups are only for the debug level which is gated out when compiling in release mode. If you intend to have logs also on release mode then you need to use info or up, and it should not be spammy

@zmerp zmerp force-pushed the grouped-logs branch 3 times, most recently from c1bf157 to 386fb36 Compare August 17, 2024 22:15
@zmerp zmerp merged commit b10f877 into master Aug 20, 2024
@zmerp zmerp deleted the grouped-logs branch August 20, 2024 23:31
szneqz pushed a commit to szneqz/ALVR that referenced this pull request Aug 21, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
zmerp added a commit that referenced this pull request Sep 10, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
@zmerp zmerp mentioned this pull request Sep 10, 2024
zmerp added a commit that referenced this pull request Sep 10, 2024
* feat: ✨ Add debug groups

* Expose logging to c apis

* Hide debug groups settings in release mode

* Use dbg macros instead of functions

* Rename "handshake" to "connection"

* Populate client_core, sever_core and connection debug groups
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 this pull request may close these issues.

4 participants