feat: implement WYSIWYG markdown editor with Go backend and React frontend
This commit is contained in:
18
backend/internal/logger/logger.go
Normal file
18
backend/internal/logger/logger.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func NewLogger() *logrus.Logger {
|
||||
log := logrus.New()
|
||||
log.SetOutput(os.Stdout)
|
||||
log.SetFormatter(&logrus.TextFormatter{
|
||||
ForceColors: true,
|
||||
FullTimestamp: true,
|
||||
})
|
||||
log.SetLevel(logrus.InfoLevel)
|
||||
return log
|
||||
}
|
||||
Reference in New Issue
Block a user