Esempio n. 1
0
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)
}
Esempio n. 2
0
func init() {
	logger := logger_golog.NewLogger(os.Stderr, logging.INFO, false)
	logging.SetLogger(logger)
}