Documentation ¶
Index ¶
- func InitSDKLogger(loggerPrefixName, moduleName string, sdkType, platformID string, logLevel int, ...) error
- func SDKDebug(ctx context.Context, path string, line string, msg string, ...)
- func SDKError(ctx context.Context, path string, line string, msg string, err error, ...)
- func SDKInfo(ctx context.Context, path string, line string, msg string, ...)
- func SDKLog(ctx context.Context, logLevel int, path string, line string, msg, err string, ...)
- func SDKWarn(ctx context.Context, path string, line string, msg string, err error, ...)
- type Color
- type Logger
- type SDKLogger
- func (l *SDKLogger) Debug(ctx context.Context, msg string, keysAndValues ...any)
- func (l *SDKLogger) Error(ctx context.Context, msg string, err error, keysAndValues ...any)
- func (l *SDKLogger) Info(ctx context.Context, msg string, keysAndValues ...any)
- func (l *SDKLogger) ToZap() *zap.SugaredLogger
- func (l *SDKLogger) Warn(ctx context.Context, msg string, err error, keysAndValues ...any)
- func (l *SDKLogger) WithCallDepth(depth int) Logger
- func (l *SDKLogger) WithName(name string) Logger
- func (l *SDKLogger) WithValues(keysAndValues ...any) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSDKLogger ¶
Types ¶
type Logger ¶
type Logger interface { Debug(ctx context.Context, msg string, keysAndValues ...any) Info(ctx context.Context, msg string, keysAndValues ...any) Warn(ctx context.Context, msg string, err error, keysAndValues ...any) Error(ctx context.Context, msg string, err error, keysAndValues ...any) WithValues(keysAndValues ...any) Logger WithName(name string) Logger WithCallDepth(depth int) Logger ToZap() *zap.SugaredLogger }
type SDKLogger ¶
type SDKLogger struct {
// contains filtered or unexported fields
}
func NewSDKLogger ¶
func (*SDKLogger) ToZap ¶
func (l *SDKLogger) ToZap() *zap.SugaredLogger
func (*SDKLogger) WithCallDepth ¶
func (*SDKLogger) WithValues ¶
Click to show internal directories.
Click to hide internal directories.