Documentation ¶
Index ¶
- Variables
- func AccessLoggerMiddleware(next http.Handler) http.Handler
- func FlushLogger()
- func InitLogger()
- func LogError(msg string, err error)
- func LogErrorWithAccountAndClientId(msg string, err error, account domain.AccountID, org_id domain.OrgID, ...)
- func LogFatalError(msg string, err error)
- func LogWithError(log *logrus.Entry, msg string, err error)
- type CustomCloudwatch
- type Marshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logrus.Logger
Log is an instance of the global logrus.Logger
Functions ¶
func FlushLogger ¶
func FlushLogger()
func LogFatalError ¶
Types ¶
type CustomCloudwatch ¶
type CustomCloudwatch struct {
Hostname string
}
CustomCloudwatch adds hostname and app name
func NewCloudwatchFormatter ¶
func NewCloudwatchFormatter() *CustomCloudwatch
NewCloudwatchFormatter creates a new log formatter
Click to show internal directories.
Click to hide internal directories.