PALEOtoolkit / PALEOboxes.jl

Model coupler for the PALEO model framework
https://PALEOtoolkit.github.io/PALEOboxes.jl
MIT License
2 stars 1 forks source link

Logging tidyup #100

Closed sjdaines closed 1 year ago

sjdaines commented 1 year ago

Group together log messages into single @info statements by using

io = IOBuffer()
println(io, ....)
@info String(take!(io))

Add

PB.infoerror(io, "some error message")

to write out accumulated log messages and then error