innerlogger

package
v1.0.186 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvLogLevel      = "LOG_SERVICE_SDK_LOG_LEVEL"
	EnvLogFileName   = "LOG_SERVICE_SDK_LOG_FILE_NAME"
	EnvIsJsonType    = "LOG_SERVICE_SDK_IS_JSON_TYPE"
	EnvLogMaxSize    = "LOG_SERVICE_SDK_LOG_MAX_SIZE"
	EnvLogMaxBackups = "LOG_SERVICE_SDK_LOG_MAX_BACKUPS"
	EnvLogCompress   = "LOG_SERVICE_SDK_LOG_COMPRESS"
)
View Source
const (
	LogLevelDebug = 0
	LogLevelInfo
	LogLevelWarn
	LogLevelError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerConfig

type LoggerConfig struct {
	LogLevel      string
	LogFileName   string
	IsJsonType    bool
	LogMaxSize    int
	LogMaxBackups int
	LogCompress   bool
}

type TLSSDKLogger

type TLSSDKLogger struct {
	log.Logger
	// contains filtered or unexported fields
}
var DefaultLogger TLSSDKLogger = initDefaultLogger()

func NewLogger

func NewLogger(config *LoggerConfig) TLSSDKLogger

func (*TLSSDKLogger) GetLogLevel

func (l *TLSSDKLogger) GetLogLevel() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL