Versions in this module Expand all Collapse all v0 v0.0.4 Oct 30, 2023 Changes in this version + const CriticalLevel + const CriticalLevelReadable + const DebugLevel + const DebugLevelReadable + const DebugLogType + const EmergencyLevel + const EmergencyLevelReadable + const ErrorLevel + const ErrorLevelReadable + const ErrorLogType + const InfoLevel + const InfoLevelReadable + const InfoLogType + const WarningLevel + const WarningLevelReadable + func ToLevel(readableLevel string) int + func ToReadableLevel(err introspectedError) string + type LoggableError interface + Error func() string + Level func() int + type RequestIdAware interface + RequestID func() string + SetRequestID func(id string) + type StdOut struct + func NewStdOut(ctx context.Context, errBuff int, reqBuff int) (logger *StdOut, closeFunc func()) + 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