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

GLib logging wrapper #69

Open
ianprime0509 opened this issue Jul 10, 2024 · 0 comments
Open

GLib logging wrapper #69

ianprime0509 opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ianprime0509
Copy link
Owner

ianprime0509 commented Jul 10, 2024

Write a logging wrapper function that the user can use to output std.log logs to the GLib logging system: https://docs.gtk.org/glib/logging.html

This may not actually be possible or worth it, since GLib's g_log does C-style formatting, which is not compatible with arbitrary Zig formatting unless we allocate an arbitrary large buffer for the formatted message. A nice alternative might be to create a wrapper around the structured logging facility instead: https://docs.gtk.org/glib/func.log_structured.html

@ianprime0509 ianprime0509 added the enhancement New feature or request label Jul 10, 2024
@ianprime0509 ianprime0509 added this to the v0.3.0 milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant