recursive tracing code logger