forked from extern/smegmesh
23 lines
444 B
Go
23 lines
444 B
Go
package logging
|
|
|
|
/*
|
|
* This package creates the info, warning and error loggers.
|
|
*/
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
InfoLog *log.Logger
|
|
WarningLog *log.Logger
|
|
ErrorLog *log.Logger
|
|
)
|
|
|
|
func init() {
|
|
InfoLog = log.New(os.Stdout, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
WarningLog = log.New(os.Stdout, "WARNING: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
ErrorLog = log.New(os.Stderr, "ERROR: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
}
|