mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-01-23 22:18:35 +01:00
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)
|
||
|
}
|