Welcome to mirror list, hosted at ThFree Co, Russian Federation.

log.go « config « praefect « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 10a27f8d0b16614947f48b7de28dea774facad49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package config

import (
	"github.com/sirupsen/logrus"
	"gitlab.com/gitlab-org/gitaly/v14/internal/log"
)

// ConfigureLogger applies the settings from the configuration file to the
// logger, setting the log level and format.
func (c Config) ConfigureLogger() *logrus.Entry {
	log.Configure(log.Loggers, c.Logging.Format, c.Logging.Level)

	return log.Default()
}