Changed the log to use log.SetOutput instead of a custom logger to solve the problem of output going to stderr