home » torr/wssrv.git
ID: 8ffde899a1d3a1eb71c0a13b867f7b5fffab09b6
20 lines — 420B — View raw


// Package log instantiates global loggers for stable and error information.
package log

import (
	"fmt"
	"log"
	"os"
)

const (
	// sep holds white space used as log type separator.
	sep = "    "
)

var (
	// Info is used to log stable runtime information.
	Info = log.New(os.Stdout, fmt.Sprintf("%s%s", "info", sep), 0)
	// Err is used to log errors.
	Err = log.New(os.Stdout, fmt.Sprintf("%s%s", "error", sep), 0)
)