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

implement Target#set_default_facility wrapper #2

Open
goatshriek opened this issue Feb 7, 2023 · 0 comments
Open

implement Target#set_default_facility wrapper #2

goatshriek opened this issue Feb 7, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@goatshriek
Copy link
Owner

Stumpless provides the stumpless_set_default_facility function to allow a target to use a given facility for messages logged without a facility. This capability is currently missing from the Rust library wrapper, and needs to be added.

General Approach

There are a few details left out of the following approach, for you to fill in as you encounter them. If you find you need help, please ask here or on the project gitter and someone can help you get past the stumbling block.

The stumpless-sys crate includes a FFI binding for stumpless_set_default_facility already. You'll simply need to add a new function in src/target.rs to the Target trait. Name the new function set_default_facility, and use the other functions already in this trait as reference to implement the new function.

@goatshriek goatshriek added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant