aboutsummaryrefslogtreecommitdiff
path: root/src/log/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/log/log.go')
-rw-r--r--src/log/log.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/log/log.go b/src/log/log.go
index 216cfe0322..8c0f83f0d1 100644
--- a/src/log/log.go
+++ b/src/log/log.go
@@ -75,6 +75,9 @@ func (l *Logger) SetOutput(w io.Writer) {
var std = New(os.Stderr, "", LstdFlags)
+// Default returns the *Logger used by the package-level output functions.
+func Default() *Logger { return std }
+
// Cheap integer to fixed-width decimal ASCII. Give a negative width to avoid zero-padding.
func itoa(buf *[]byte, i int, wid int) {
// Assemble decimal in reverse order.