Evgeny Safronov

Results 44 comments of Evgeny Safronov

Well, this may be tricky. I'm not sure of FreeBSD pthread support, because this function is not portable at all. Can you just try to add `#include ` at top...

Is there anything with similar functionality?

Okay, it takes significant time for me to configure FreeBSD virtual machine to be able to declare its support. Since, PR's are welcome, you can speedup the process.

No, the library was not designed to be fork-safe.

thsito podelat ¯_(ツ)_/¯

Then it's enough to reassign the logger just before/after fork, which you can do explicitly without library support. Blackhole supports thread-safe reassignments using operator=(&&). Seriously, I haven't seen any library...

I didn't test. Be the first!

> Looks bad. Looks as expected: https://github.com/3Hren/blackhole/blob/master/tests/root.cpp#L355 Maybe for someone it's counterintuitive, but that's how it was implemented and I cannot break API right now. > Some other way to...

Adding such method seems ok. But who creates handlers before passing to the method?

Well, filters can be reset right now. Handlers are not. May be just add a method, which destructs current logger into handlers? Sorry for my Rust: ``` rust fn into_handlers(self)...