Closed praxamarnix closed 1 year ago
Thanks for the issue!
Yeah, I noticed that too, we should change that, however I found no way in making this an API-compatible change. We would have to raise the major version when merging this feature, therefore I postponed it.
You (and everybody else) are free to submit a pull request, in the meantime I am trying to reproduce the current issues and possibly merge a few API-compatible features before raising the major version.
The implementation of
Logger.close()
nicely destroys the_output
, but if the_output
is aFileOutput
, thatdestroy
function isasync void
.It would be a best practice to let Logger
await
thedestroy
function and makedestroy
return aFuture<void>
.Doing so makes it possible in a unit test to await the close function before actually deleting the temporary folder.