add helper method to logger