1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package internal contains definitions used by both log and log/slog. 6 package internal 7 8 // DefaultOutput holds a function which calls the default log.Logger's 9 // output function. 10 // It allows slog.defaultHandler to call into an unexported function of 11 // the log package. 12 var DefaultOutput func(pc uintptr, data []byte) error 13