record

package
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLogOutput

func CloseLogOutput() error

CloseLogOutput closes the log file, if any

func Debug

func Debug(message string)

Debug just logs the message if in debug mode

func ExposePromMetrics

func ExposePromMetrics(config domain.RuntimeConfig)

func InitDsLogger

func InitDsLogger()

InitDsLogger sets flags on the default logger

func Log

func Log(message string)

Log just logs the message

func SetLogOutput

func SetLogOutput(logPath string) error

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

func NewDsLogger(notes ...string) *DsLogger

NewDsLogger returns a new struct. But is it necessary?

func (*DsLogger) AddNote

func (l *DsLogger) AddNote(note string) *DsLogger

AddNote appends a note to the not string

func (*DsLogger) AppID

func (l *DsLogger) AppID(appID domain.AppID) *DsLogger

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

func (l *DsLogger) AppVersion(version domain.Version) *DsLogger

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

func (*DsLogger) Clone

func (l *DsLogger) Clone() *DsLogger

Clone returns a new DsLogger with all values copied.

func (*DsLogger) Debug

func (l *DsLogger) Debug(message string)

Debug writes the message to the log if debug mode is on

func (*DsLogger) Error

func (l *DsLogger) Error(err error)

Error writes the error to the log

func (*DsLogger) Log

func (l *DsLogger) Log(message string)

Log writes the message to the log

func (*DsLogger) UserID

func (l *DsLogger) UserID(userID domain.UserID) *DsLogger

UserID is set on all uses of the returned logger If user id is already set, the old user id is added to note

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL