func NewLogger(uri string) (logging.Logger, errors.Error) { var logger logging.Logger if strings.HasPrefix(uri, "golog") { logger = logger_golog.NewLogger(os.Stderr, logging.INFO, false) logging.SetLogger(logger) return logger, nil } return nil, errors.NewAdminInvalidURL("Logger", uri) }
func init() { logger := logger_golog.NewLogger(os.Stderr, logging.INFO, false) logging.SetLogger(logger) }