Documentation ¶
Index ¶
- func CloseLogOutput() error
- func Debug(message string)
- func ExposePromMetrics(config domain.RuntimeConfig)
- func InitDsLogger()
- func Log(message string)
- func SetLogOutput(logPath string) error
- func StopPromMetrics() error
- type DsLogger
- func (l *DsLogger) AddNote(note string) *DsLogger
- func (l *DsLogger) AppID(appID domain.AppID) *DsLogger
- func (l *DsLogger) AppVersion(version domain.Version) *DsLogger
- func (l *DsLogger) AppspaceID(appspaceID domain.AppspaceID) *DsLogger
- func (l *DsLogger) Clone() *DsLogger
- func (l *DsLogger) Debug(message string)
- func (l *DsLogger) Error(err error)
- func (l *DsLogger) Log(message string)
- func (l *DsLogger) UserID(userID domain.UserID) *DsLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExposePromMetrics ¶
func ExposePromMetrics(config domain.RuntimeConfig)
func SetLogOutput ¶
SetLogOutput sets the path of the log file
func StopPromMetrics ¶
func StopPromMetrics() error
Types ¶
type DsLogger ¶
type DsLogger struct {
// contains filtered or unexported fields
}
DsLogger wraps the standard log or anoything else we use late
func NewDsLogger ¶
NewDsLogger returns a new struct. But is it necessary?
func (*DsLogger) AppID ¶
AppID is set on all uses of the returned logger If app id is already set, the old app id is added to note
func (*DsLogger) AppVersion ¶
AppVersion adds app version to logger If already set, old version is added to note.
func (*DsLogger) AppspaceID ¶
func (l *DsLogger) AppspaceID(appspaceID domain.AppspaceID) *DsLogger
AppspaceID is set on all uses of the returned logger
Click to show internal directories.
Click to hide internal directories.