nlog

package
v1.3.27 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 12 Imported by: 3

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 LogToStderr bool
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

see also: `logtypes` in stats/common

func Infof

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

func Infoln

func Infoln(args ...any)

func OOB added in v1.3.19

func OOB() bool

func SetPost added in v1.3.24

func SetPost(logToStderr bool, maxSize int64)

func SetPre added in v1.3.24

func SetPre(dir, role string)

func SetStopping added in v1.3.23

func SetStopping()

func SetTitle

func SetTitle(s string)

func Since added in v1.3.19

func Since(now int64) time.Duration

func Stopping added in v1.3.23

func Stopping() bool

func WarningDepth added in v1.3.26

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

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