add usage doc for logging code.