Documentation ¶
Index ¶
- Constants
- func ToLevel(readableLevel string) int
- func ToReadableLevel(err introspectedError) string
- type LoggableError
- type RequestIdAware
- type StdOut
- func (l StdOut) Close() (closeFunc func())
- func (l StdOut) Context() context.Context
- func (l StdOut) Critical(strOrErr any)
- func (l StdOut) CriticalPropagate(strOrErr any) error
- func (l StdOut) Debug(strOrErr any)
- func (l StdOut) DebugPropagate(strOrErr any) error
- func (l StdOut) Emergency(strOrErr any)
- func (l StdOut) EmergencyPropagate(strOrErr any) error
- func (l StdOut) Error(strOrErr any)
- func (l StdOut) ErrorPropagate(strOrErr any) error
- func (l StdOut) Info(strOrErr any)
- func (l StdOut) InfoPropagate(strOrErr any) error
- func (l StdOut) Log(err error)
- func (l StdOut) LogData(data any)
- func (l StdOut) LogPropagate(err error) error
- func (l StdOut) SetContext(ctx context.Context)
- func (l StdOut) SetOutput(w io.Writer)
- func (l StdOut) Warning(strOrErr any)
- func (l StdOut) WarningPropagate(strOrErr any) error
- func (l StdOut) Writer() io.Writer
Constants ¶
View Source
const ( InfoLevelReadable = "INFO" DebugLevelReadable = "DEBUG" WarningLevelReadable = "WARNING" ErrorLevelReadable = "ERROR" CriticalLevelReadable = "CRITICAL" EmergencyLevelReadable = "EMERGENCY" InfoLevel = iota DebugLevel WarningLevel ErrorLevel CriticalLevel EmergencyLevel DebugLogType = "debug" InfoLogType = "info" ErrorLogType = "error" )
Variables ¶
This section is empty.
Functions ¶
func ToReadableLevel ¶
func ToReadableLevel(err introspectedError) string
Types ¶
type LoggableError ¶
type RequestIdAware ¶
type StdOut ¶
type StdOut struct {
// contains filtered or unexported fields
}
func (StdOut) CriticalPropagate ¶
func (StdOut) DebugPropagate ¶
func (StdOut) EmergencyPropagate ¶
func (StdOut) ErrorPropagate ¶
func (StdOut) InfoPropagate ¶
func (StdOut) LogPropagate ¶
func (StdOut) SetContext ¶
func (StdOut) WarningPropagate ¶
Click to show internal directories.
Click to hide internal directories.