14 lines
252 B
Go
14 lines
252 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func InitializeLogger() *logrus.Logger {
|
|
log := logrus.New()
|
|
log.SetFormatter(&logrus.TextFormatter{
|
|
FullTimestamp: true, // Include the full timestamp (with date and time)
|
|
})
|
|
return log
|
|
}
|