package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev

# Functions

Debug ...
Debugf ...
DefaultLogger returns the default logger within the pkg, i.e.
Error ...
Errorf ...
Fatal ...
Fatalf ...
GetLevel return the verbosity level of default logger.
GetLogger retrieves the current logger from the context.
Info ...
Infof ...
New returns a customized Logger.
NewRecord creates a record according to the arguments provided and returns it.
NewTextFormatter returns a TextFormatter, the format of time is time.RFC3339.
Warning ...
Warningf ...
WithLogger returns a new context with the provided logger.

# Constants

DebugLevel debug.
ErrorLevel error.
FatalLevel fatal.
InfoLevel info.
WarningLevel warning.

# Variables

G shortcut to get logger from the context.
L the default logger.

# Structs

Logger provides a struct with fields that describe the details of logger.
Record holds information about log.
TextFormatter represents a kind of formatter that formats the logs as plain text.

# Interfaces

Formatter formats records in different ways: text, json, etc.

# Type aliases

Fields type alias to map[string]interface{}.
Level ...