add logging method with tag