mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 13:29:56 +02:00
* chore: intake email attachment * chore: add rate limit for intake form issues * chore: add attachments for intake issues * chore: add logging in email service * chore: remove patch endpoint url * chore: remove private key * chore: update formatting * chore: move intake anchor function to separate utility file * chore: added anchor based rate limiting * chore: update rate limit
28 lines
402 B
Go
28 lines
402 B
Go
package logger
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
type Logger struct {
|
|
*logrus.Logger
|
|
}
|
|
|
|
var Log = New() // Expose the logger instance
|
|
|
|
func New() *Logger {
|
|
base := logrus.New()
|
|
|
|
base.SetFormatter(&logrus.JSONFormatter{
|
|
PrettyPrint: false,
|
|
TimestampFormat: "2006-01-02T15:04:05Z07:00",
|
|
})
|
|
|
|
base.SetOutput(os.Stdout)
|
|
base.SetLevel(logrus.InfoLevel)
|
|
|
|
return &Logger{base}
|
|
}
|