Tracing of optimization algorithm with @debug

I’m debugging a constatined-optimization algorithm of CubicEoS.jl package.

The code is heavily logged with @debug macro. Each of @debug-entry has a unique message like newton or backtracking

I want to post-process logs and make them tabular for further plotting of optimization trace.

For example, I want to collect newton's branch of @debug logs and convert them to a table. So, these messages

...
...
┌ Debug: newton
│   i = 1
│   f(x) = -0.000153587
│   norm(∇f(x)) = 0.072439363
└ @ CubicEoS ~/.julia/dev/CubicEoS/src/newton.jl:43
...
...
┌ Debug: newton
│   i = 2
│   f(x) = -0.000155484
│   norm(∇f(x)) = 0.056179837
└ @ CubicEoS ~/.julia/dev/CubicEoS/src/newton.jl:43
...
...

should be converted as (.csv, .tsv,…)

i 	f(x) 			norm(∇f(x))
1	-0.000153587 	0.072439363
2	-0.000155484 	0.056179837

Is there a package for such purposes?