Similar to #12, I cannot use top level await (running in electron), but I do have a file sink.
One workaround that I'm using right now is saving logs in an buffer array and once configure finishes flush those too and replace the buffered logger, but I would love a cleaner solution.
Any thoughts?
Perhaps logtape can work the same way, if you call the logs before it's configured it saves those into memory.
Similar to #12, I cannot use top level await (running in electron), but I do have a file sink.
One workaround that I'm using right now is saving logs in an buffer array and once configure finishes flush those too and replace the buffered logger, but I would love a cleaner solution.
Any thoughts?
Perhaps logtape can work the same way, if you call the logs before it's configured it saves those into memory.