Standard librarylog/internal Index | Files

package internal

import "log/internal"

Package internal contains definitions used by both log and log/slog.

Index

Variables

var DefaultOutput func(pc uintptr, data []byte) error

DefaultOutput holds a function which calls the default log.Logger's output function. It allows slog.defaultHandler to call into an unexported function of the log package.

Source Files

internal.go

Version
v1.21.0-rc.2
Published
Jun 21, 2023
Platform
js/wasm
Last checked
1 minute ago

Tools for package owners.