Documentation
¶
Index ¶
Constants ¶
View Source
const (
// LogPath is the path where log files are stored.
LogPath = "/var/log/"
)
Variables ¶
View Source
var ( CNILogger = initZapLog(zapCNILogFile) IPamLogger = initZapLog(zapIpamLogFile) TelemetryLogger = initZapLog(zapTelemetryLogFile) )
Functions ¶
func InitializeMock ¶
func InitializeMock()
func JoinPlatformCores ¶
func SetMetadata ¶ added in v1.8.8
SetMetadata sets metadata fields that will be appended to every log entry written through CNILogger, IPamLogger, and TelemetryLogger (and any loggers derived from them). Safe to call once from main() after metadata is available.
Types ¶
type ErrorWithoutStackTrace ¶
type ErrorWithoutStackTrace struct {
// contains filtered or unexported fields
}
func NewErrorWithoutStackTrace ¶
func NewErrorWithoutStackTrace(err error) *ErrorWithoutStackTrace
func (*ErrorWithoutStackTrace) Error ¶
func (l *ErrorWithoutStackTrace) Error() string
func (*ErrorWithoutStackTrace) Format ¶
func (l *ErrorWithoutStackTrace) Format(s fmt.State, verb rune)
func (*ErrorWithoutStackTrace) Unwrap ¶
func (l *ErrorWithoutStackTrace) Unwrap() error
Click to show internal directories.
Click to hide internal directories.