Allow Metrics to be created with custom logger.
Defaults to console.log if a function was not provided.