Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
927 B
Go
28 lines
927 B
Go
package logging
|
|
|
|
// LoggerInterface ...
|
|
// If a custom logger object is to be used, it should comply with the following
|
|
// interface. (Standard go-lang library log.Logger.Println method signature)
|
|
type LoggerInterface interface {
|
|
Error(msg ...interface{})
|
|
Warning(msg ...interface{})
|
|
Info(msg ...interface{})
|
|
Debug(msg ...interface{})
|
|
Verbose(msg ...interface{})
|
|
}
|
|
|
|
// ParamsFn is a function that returns a slice of interface{}
|
|
type ParamsFn = func() []interface{}
|
|
|
|
// ExtendedLoggerInterface ...
|
|
// If a custom logger object is to be used, it should comply with the following
|
|
// interface. (Standard go-lang library log.Logger.Println method signature)
|
|
type ExtendedLoggerInterface interface {
|
|
LoggerInterface
|
|
ErrorFn(format string, params ParamsFn)
|
|
WarningFn(format string, params ParamsFn)
|
|
InfoFn(format string, params ParamsFn)
|
|
DebugFn(format string, params ParamsFn)
|
|
VerboseFn(format string, params ParamsFn)
|
|
}
|