Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
414 stars 71 forks source link

WriteLogger error handling? #111

Closed Ryder17z closed 1 year ago

Ryder17z commented 1 year ago

what's the error handling like for WriteLogger?

I don't see anything for handling if the given path/file cannot be written to (either due to permissions, (b)locking or if the path doesn't exist)

Drakulix commented 1 year ago

In that case you are likely not able to create a File anyway (or whatever it is you want to be writing to). But if writing fails during runtime, the error is silently dropped right now (so the application won't panic).

Ryder17z commented 1 year ago

Alright. Thanks for the explanation.

On Sun, 7 Aug 2022, 17:36 Victoria Brekenfeld, @.***> wrote:

In that case you are likely not able to create a File anyway (or whatever it is you want to be writing to). But if writing fails during runtime, the error is silently dropped right now (so the application won't panic).

— Reply to this email directly, view it on GitHub https://github.com/Drakulix/simplelog.rs/issues/111#issuecomment-1207432772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPIOP6GIPJD275H45EH72TVX7JV7ANCNFSM55XVQUVA . You are receiving this because you authored the thread.Message ID: @.***>