adding more functionality to logger