When does SemanticLogger call SemanticLogger.close
?
#214
-
Hello! Firstly, fantastic library. Do you take sponsorship / donations for the project (e.g. via OpenCollective)? Really appreciate the quality & effort put into this piece of software. I'm trying to understand when I noticed in release 4.2.0 (changelog) that the library now calls As a proof-of-concept, I created a sample Rails app with an appender, and overrode the I was wondering
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If I recall correctly the reason it calls |
Beta Was this translation helpful? Give feedback.
If I recall correctly the reason it calls
flush
and notclose
is because of test frameworks. They register tests as part of theat_exit
logic, so theclose
was being called before the tests had a chance to run, preventing any logging from being processed. Give it a try locally. Will be happy to change it back to.close
instead of.flush
if we can make it also work during tests.