logger: update code to print nanosecond