You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to send the output to console by default but also send it to JSon file.
I have been able to format the JSon file output but could not figure out how to have both outputs.
Is it possible? If so, could bring me any clue on it?
Thanks in advance
J
The text was updated successfully, but these errors were encountered:
Hello @xleyba , sorry for the late response. This is actually very easy and we have an example for that case, please read below.
golog supports unlimited number of simultaneously output targets. with AddOutput(io.Writer) method as the _examples/multi-output/main.go does for an os.File. And the good part is that colors are automatically removed from the log line if an output target is not a terminal instance.
Hi
I would like to send the output to console by default but also send it to JSon file.
I have been able to format the JSon file output but could not figure out how to have both outputs.
Is it possible? If so, could bring me any clue on it?
Thanks in advance
J
The text was updated successfully, but these errors were encountered: