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

Consolidate logging with a unified interface #48

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Consolidate logging with a unified interface #48

merged 1 commit into from
Sep 14, 2024

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Sep 12, 2024

Currently, various messages are displayed while the window system is running, but their format and usage are inconsistent. Additionally, depending on the scenario, it may be useful to adjust the color scheme or disable logging output altogether.

The rxi/log.c offers a robust solution for these needs, and it would be beneficial to integrate it into the core implementation of the window system to standardize logging and enhance flexibility.

  • log_trace
  • log_debug
  • log_info
  • log_warn
  • log_error
  • log_fatal

Close #47

Copy link
Collaborator

@jouae jouae Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"FIXME: Both twin_private.h and log.h are private header files."
What issue is this statement trying to fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"FIXME: Both twin_private.h and log.h are private header files." What issue is this statement trying to fix?

See #9

Currently, various messages are displayed while the window system is
running, but their format and usage are inconsistent. Additionally,
depending on the scenario, it may be useful to adjust the color scheme
or disable logging output altogether.

The rxi/log.c [1] offers a robust solution for these needs, and it would
be beneficial to integrate it into the core implementation of the window
system to standardize logging and enhance flexibility.
 - log_trace
 - log_debug
 - log_info
 - log_warn
 - log_error
 - log_fatal

[1] https://github.com/rxi/log.c

Close #47
@jserv jserv merged commit e350d40 into main Sep 14, 2024
6 checks passed
@jserv jserv deleted the logging branch September 14, 2024 03:44
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.

Consolidate logging with a unified interface
2 participants