Standard library / log

log.Default()

Return the standard logger used by package-level functions. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func Default() *Logger

Return Value

*Logger

Return the standard logger used by package-level functions.

Working Example

Example Snippetgo
package main
import (  "fmt"  "log")
func main() { fmt.Println(log.Default() != nil) }
Go Reference