Code for enabling diagnostics and view application trace logs