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

Re-export gdnative_core::log again #800

Merged
merged 1 commit into from Oct 19, 2021

Conversation

chitoyuu
Copy link
Contributor

Types and functions in the log module should remain visible and part of the public API:

  • Site is the return type of the trait method Method::site, and is necessary to name when implementing the trait manually e.g. for a generic method.
  • print, warn and error are safe high-level bindings to the native logging facilities that aren't available elsewhere, and are worthwhile to expose for custom log backend implementations that want to use call site information from the logging framework instead.

Types and functions in the `log` module should remain visible and part of
the public API:

- `Site` is the return type of the trait method `Method::site`, and is
  necessary to name when implementing the trait manually e.g. for a generic
  method.
- `print`, `warn` and `error` are safe high-level bindings to the native
  logging facilities that aren't available elsewhere, and are worthwhile to
  expose for custom `log` backend implementations that want to use call site
  information from the logging framework instead.
@Bromeon
Copy link
Member

Bromeon commented Oct 19, 2021

Good catch, thank you! I was under the impression this was only used internally.

The module log is a bit in a weird place with only these symbols:
grafik

But I don't have a better place right now, main thing is that it's accessible and documented. There might be a few more movings coming, see "Things not (yet) done" in #788.

bors r+

@Bromeon Bromeon added bug c: core Component: core (mod core_types, object, log, init, ...) labels Oct 19, 2021
@bors
Copy link
Contributor

bors bot commented Oct 19, 2021

Build succeeded:

@bors bors bot merged commit 555cdcd into godot-rust:master Oct 19, 2021
@chitoyuu chitoyuu deleted the fix/re-export-log branch October 19, 2021 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: core Component: core (mod core_types, object, log, init, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants