gitlab.com/evatix-go/core@v1.3.55/coreinterface/loggerinf/StandardLogger.go (about)

     1  package loggerinf
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/coredata/corejson"
     5  	"gitlab.com/evatix-go/core/coreinterface/enuminf"
     6  	"gitlab.com/evatix-go/core/coreinterface/errcoreinf"
     7  )
     8  
     9  type StandardLogger interface {
    10  	StandardLoggerChecker
    11  	ConditionalStandardLogger
    12  
    13  	FullLogger() FullLogger
    14  	EnvOptioner() enuminf.EnvironmentOptioner
    15  
    16  	TaskNamedLogger(
    17  		taskName string,
    18  	) StandardLogger
    19  
    20  	TaskWithPayloadLogger(
    21  		taskName string,
    22  		payloadAny interface{}, // can be bytes, payloadWrapper, can be any
    23  	) StandardLogger
    24  
    25  	GetLoggerByTaskName(taskName string) StandardLogger
    26  	GetLoggerByTaskNamer(taskNamer enuminf.Namer) StandardLogger
    27  
    28  	Success(args ...interface{}) StandardLogger
    29  	Info(args ...interface{}) StandardLogger
    30  	Trace(args ...interface{}) StandardLogger
    31  	Debug(args ...interface{}) StandardLogger
    32  	Warn(args ...interface{}) StandardLogger
    33  	Error(args ...interface{}) StandardLogger
    34  	Fatal(args ...interface{}) StandardLogger
    35  	Panic(args ...interface{}) StandardLogger
    36  
    37  	SuccessFmt(format string, args ...interface{}) StandardLogger
    38  	InfoFmt(format string, args ...interface{}) StandardLogger
    39  	TraceFmt(format string, args ...interface{}) StandardLogger
    40  	DebugFmt(format string, args ...interface{}) StandardLogger
    41  	WarnFmt(format string, args ...interface{}) StandardLogger
    42  	ErrorFmt(format string, args ...interface{}) StandardLogger
    43  	FatalFmt(format string, args ...interface{}) StandardLogger
    44  	PanicFmt(format string, args ...interface{}) StandardLogger
    45  
    46  	SuccessExtend() SingleLogger
    47  	InfoExtend() SingleLogger
    48  	TraceExtend() SingleLogger
    49  	DebugExtend() SingleLogger
    50  	WarnExtend() SingleLogger
    51  	FatalExtend() SingleLogger
    52  	PanicExtend() SingleLogger
    53  
    54  	ErrorDirect(err error) StandardLogger
    55  	OnErrStackTrace(err error) StandardLogger
    56  	ErrInterface(errInf errcoreinf.BaseErrorOrCollectionWrapper) StandardLogger
    57  	ErrInterfaceStackTraces(errInfWithStackTraces errcoreinf.BaseErrorOrCollectionWrapper) StandardLogger
    58  
    59  	ReflectSetter
    60  
    61  	InfoOrError(isError bool) SingleLogger
    62  	Log(loggerType enuminf.LoggerTyper) StandardLogger
    63  
    64  	ErrorJsoner(jsoner corejson.Jsoner) StandardLogger
    65  	DebugJsoner(jsoner corejson.Jsoner) StandardLogger
    66  	ErrorJsonerTitle(title string, jsoner corejson.Jsoner) StandardLogger
    67  	DebugJsonerTitle(title string, jsoner corejson.Jsoner) StandardLogger
    68  }