Documentation
¶
Index ¶
- Variables
- func CDPanic(ctx context.Context, template string, args ...interface{})
- func CDPanicln(ctx context.Context, args ...interface{})
- func CDPanicw(ctx context.Context, msg string, keysAndValues ...interface{})
- func CDebug(ctx context.Context, template string, args ...interface{})
- func CDebugln(ctx context.Context, args ...interface{})
- func CDebugw(ctx context.Context, msg string, keysAndValues ...interface{})
- func CError(ctx context.Context, template string, args ...interface{})
- func CErrorln(ctx context.Context, args ...interface{})
- func CErrorw(ctx context.Context, msg string, keysAndValues ...interface{})
- func CFatal(ctx context.Context, template string, args ...interface{})
- func CFatalln(ctx context.Context, args ...interface{})
- func CFatalw(ctx context.Context, msg string, keysAndValues ...interface{})
- func CInfo(ctx context.Context, template string, args ...interface{})
- func CInfoln(ctx context.Context, args ...interface{})
- func CInfow(ctx context.Context, msg string, keysAndValues ...interface{})
- func CLog(ctx context.Context, level zapcore.Level, extra_skip int, template string, ...)
- func CLogln(ctx context.Context, level zapcore.Level, extra_skip int, args ...interface{})
- func CLogw(ctx context.Context, level zapcore.Level, extra_skip int, msg string, ...)
- func CPanic(ctx context.Context, template string, args ...interface{})
- func CPanicln(ctx context.Context, args ...interface{})
- func CPanicw(ctx context.Context, msg string, keysAndValues ...interface{})
- func CWarn(ctx context.Context, template string, args ...interface{})
- func CWarnln(ctx context.Context, args ...interface{})
- func CWarnw(ctx context.Context, msg string, keysAndValues ...interface{})
- func DefaultError(args ...interface{})
- func DefaultErrorf(template string, args ...interface{})
- func DefaultErrorln(args ...interface{})
- func DefaultErrorw(msg string, keysAndValues ...interface{})
- func DefaultPanic(args ...interface{})
- func DefaultPanicf(template string, args ...interface{})
- func DefaultPanicln(args ...interface{})
- func DefaultPanicw(msg string, keysAndValues ...interface{})
- func DefaultPrint(args ...interface{})
- func DefaultPrintf(template string, args ...interface{})
- func DefaultPrintln(args ...interface{})
- func DefaultPrintw(msg string, keysAndValues ...interface{})
- func NewXormZapSugaredLogger(logger *zap.SugaredLogger) *xormZapSugaredLogger
- func UsingDefaultLogger()
- type SLogger
- func (s *SLogger) CDPanic(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CDPanicln(ctx context.Context, args ...interface{})
- func (s *SLogger) CDPanicw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) CDebug(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CError(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CErrorln(ctx context.Context, args ...interface{})
- func (s *SLogger) CErrorw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) CFatal(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CFatalln(ctx context.Context, args ...interface{})
- func (s *SLogger) CFatalw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) CInfo(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CInfoln(ctx context.Context, args ...interface{})
- func (s *SLogger) CInfow(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) CLog(ctx context.Context, level zapcore.Level, extra_skip int, template string, ...)
- func (s *SLogger) CLogln(ctx context.Context, level zapcore.Level, extra_skip int, args ...interface{})
- func (s *SLogger) CLogw(ctx context.Context, level zapcore.Level, extra_skip int, msg string, ...)
- func (s *SLogger) CPanic(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CPanicln(ctx context.Context, args ...interface{})
- func (s *SLogger) CPanicw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) CWarn(ctx context.Context, template string, args ...interface{})
- func (s *SLogger) CWarnln(ctx context.Context, args ...interface{})
- func (s *SLogger) CWarnw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (s *SLogger) GetKeysAndValues() []any
- func (s *SLogger) GetMsg(msg string) string
- func (s *SLogger) With(key string, value interface{}) *SLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = func(lvl zapcore.Level, args ...interface{}) { DefaultPrint(args) }
View Source
var Logf = func(lvl zapcore.Level, template string, args ...interface{}) { DefaultPrintf(template, args) }
View Source
var Logger_2 *zap.SugaredLogger // skipCaller(2) Sugared Logger
View Source
var Logln = func(lvl zapcore.Level, args ...interface{}) { DefaultPrintln(args) }
View Source
var Logw = func(lvl zapcore.Level, msg string, keysAndValues ...interface{}) { DefaultPrintw(msg, keysAndValues) }
Functions ¶
func DefaultError ¶
func DefaultError(args ...interface{})
func DefaultErrorf ¶
func DefaultErrorf(template string, args ...interface{})
func DefaultErrorln ¶
func DefaultErrorln(args ...interface{})
func DefaultErrorw ¶
func DefaultErrorw(msg string, keysAndValues ...interface{})
func DefaultPanic ¶
func DefaultPanic(args ...interface{})
func DefaultPanicf ¶
func DefaultPanicf(template string, args ...interface{})
func DefaultPanicln ¶
func DefaultPanicln(args ...interface{})
func DefaultPanicw ¶
func DefaultPanicw(msg string, keysAndValues ...interface{})
func DefaultPrint ¶
func DefaultPrint(args ...interface{})
func DefaultPrintf ¶
func DefaultPrintf(template string, args ...interface{})
func DefaultPrintln ¶
func DefaultPrintln(args ...interface{})
func DefaultPrintw ¶
func DefaultPrintw(msg string, keysAndValues ...interface{})
func NewXormZapSugaredLogger ¶
func NewXormZapSugaredLogger(logger *zap.SugaredLogger) *xormZapSugaredLogger
func UsingDefaultLogger ¶
func UsingDefaultLogger()
Types ¶
type SLogger ¶
func NewSLogger ¶
func (*SLogger) GetKeysAndValues ¶
Click to show internal directories.
Click to hide internal directories.