nlog

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package nlog - aistore logger, provides buffering, timestamping, writing, and flushing/syncing/rotating

  • Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.

Package nlog

  • Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.

Package nlog - aistore logger, provides buffering, timestamping, writing, and flushing/syncing/rotating

  • Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.

Package nlog - aistore logger, provides buffering, timestamping, writing, and flushing/syncing/rotating

  • Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.

Package nlog - aistore logger, provides buffering, timestamping, writing, and flushing/syncing/rotating

  • Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.

Index

Constants

View Source
const (
	ActNone = iota
	ActExit
	ActRotate
)

Variables

View Source
var MaxSize int64 = 4 * 1024 * 1024 // usually, config.log.max_size

Functions

func ErrLogName

func ErrLogName() string

func ErrorDepth

func ErrorDepth(depth int, args ...any)

func Errorf

func Errorf(format string, args ...any)

func Errorln

func Errorln(args ...any)

func Flush

func Flush(action int)

func InfoDepth

func InfoDepth(depth int, args ...any)

func InfoLogName

func InfoLogName() string

func Infof

func Infof(format string, args ...any)

func Infoln

func Infoln(args ...any)

func InitFlags

func InitFlags(flset *flag.FlagSet)

func OOB added in v1.3.19

func OOB() bool

func SetLogDirRole

func SetLogDirRole(dir, role string)

func SetTitle

func SetTitle(s string)

func Since added in v1.3.19

func Since() time.Duration

func Warningf

func Warningf(format string, args ...any)

func Warningln

func Warningln(args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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