logger: get more runtime info if print error or panic log message