SpriteOvO / spdlog-rs

Fast, highly configurable Rust logging crate
https://crates.io/crates/spdlog-rs
Apache License 2.0
109 stars 12 forks source link

Allow forking from existing loggers #15

Closed SpriteOvO closed 2 years ago

SpriteOvO commented 2 years ago

Closes #13.

To avoid confusion with the semantics of Arc::clone, I have named the new methods as fork_xxx.

Unsolved Questions

Lancern commented 2 years ago

Not sure if fn fork(self: &Arc<Self>) -> Result<Arc<Self>> (no modifier, just fork as is) is also necessary to add.

I can't imagine a use case for this function. Is it necessary? What's the use case?

SpriteOvO commented 2 years ago

Not sure if fn fork(self: &Arc<Self>) -> Result<Arc<Self>> (no modifier, just fork as is) is also necessary to add.

I can't imagine a use case for this function. Is it necessary? What's the use case?

I can't either. So let's not implement it and wait for a feature request to be opened by someone who needs it.