implement Target#set_default_facility wrapper #2
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
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 forstumpless_set_default_facility
already. You'll simply need to add a new function insrc/target.rs
to theTarget
trait. Name the new functionset_default_facility
, and use the other functions already in this trait as reference to implement the new function.The text was updated successfully, but these errors were encountered: