Hi, guys.
I am trying to understand how to use Julia Logging system. For that I am now reading through the julia docs and the corresponding source code.
I have a question about the implementation of SimpleLogger (see logger.jl). In the function handle_message
, instead of writing all the messages directly to IOStream, the messages are first written into an additional IOBuffer and then the contents of the IOBuffer are copied to the IOStream.
What are the benefits of such design?