Adds log function for logger class