package logging

import "github.com/containerd/nydus-snapshotter/internal/logging"

Index

Constants

const (
	DefaultLogDirName = "logs"
)

Functions

func SetUp

func SetUp(logLevel string, logToStdout bool, logDir string, logRotateArgs *RotateLogArgs) error

func WithContext

func WithContext() context.Context

Types

type RotateLogArgs

type RotateLogArgs struct {
	RotateLogMaxSize    int
	RotateLogMaxBackups int
	RotateLogMaxAge     int
	RotateLogLocalTime  bool
	RotateLogCompress   bool
}

Source Files

setup.go

Version
v0.15.1 (latest)
Published
Jan 26, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
6 days ago

Tools for package owners.