Go Package log

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Recipes

Changing the Logging Device

import (
    "log"
    "os"
)
...
func init() {

    // change the device for logging to stdout
    log.SetOutput(os.Stdout)
}