It is the first time for me to write in this forum.
I started using Julia recently, so I am sorry if my question might be very basic.
I am using the
Logging package to simplify debugging my code.
In my case I would like printout multiple messages in a single @debug or @info block
Supposing my variables are
The output I want can be achieved as follows:
@info “My info msg” a b c
The problem is that in my case instead of just 3 variables I would have around 20,
so the code would be come impossible to read, for example:
@info “My info msg” “message 1” var3 “message 2” “message 3” “…message n”
How can I print in single @info call without impacting the code readability?
I have tried also the following:
But only the last variable (
b in this case) is reads by the macro and considered as the message argument.
Thanks a lot in advance for your help