package logging

import "github.com/containerd/containerd/runtime/v2/logging"

Index

Functions

func Run

func Run(fn LoggerFunc)

Run the logging driver

Types

type Config

type Config struct {
	ID        string
	Namespace string
	Stdout    io.Reader
	Stderr    io.Reader
}

Config of the container logs

type LoggerFunc

type LoggerFunc func(ctx context.Context, cfg *Config, ready func() error) error

LoggerFunc is implemented by custom v2 logging binaries.

ready should be called when the logging binary finishes its setup and the container can be started.

An example implementation of LoggerFunc: https://github.com/containerd/containerd/tree/main/runtime/v2#logging

Source Files

logging.go logging_unix.go

Version
v1.7.0-rc.3
Published
Mar 9, 2023
Platform
js/wasm
Imports
6 packages
Last checked
1 minute ago

Tools for package owners.