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

     1  package loggerinf
     2  
     3  type LoggerStackSkip interface {
     4  	FatalStackSkip(
     5  		stackSkipIndex int,
     6  		args ...interface{},
     7  	)
     8  	ErrorStackSkip(
     9  		stackSkipIndex int,
    10  		args ...interface{},
    11  	)
    12  
    13  	// ErrorUsingError
    14  	//
    15  	// Skip if no error
    16  	ErrorUsingError(err error)
    17  
    18  	// ErrorUsingErrorStackSkip
    19  	//
    20  	// Skip if no error
    21  	ErrorUsingErrorStackSkip(
    22  		stackSkipIndex int,
    23  		err error,
    24  	)
    25  
    26  	ErrorIf(isLog bool, args ...interface{})
    27  	DebugFmtIf(
    28  		isLog bool,
    29  		formatter string,
    30  		args ...interface{},
    31  	)
    32  	DebugFmtStackSkip(
    33  		stackSkipIndex int,
    34  		format string,
    35  		args ...interface{},
    36  	)
    37  
    38  	DebugIf(isLog bool, args ...interface{}) // Debug logs a message at Debug level.
    39  	DebugStackSkip(
    40  		stackSkipIndex int,
    41  		args ...interface{},
    42  	)
    43  
    44  	DebugIncludingStackTracesIf(
    45  		isLog bool,
    46  		stackSkipIndex int,
    47  		args ...interface{},
    48  	)
    49  	DebugIncludingStackTraces(
    50  		stackSkipIndex int,
    51  		args ...interface{},
    52  	)
    53  }