Changed the logger function to accept multiple parameters.