From 84092521c3c4076cddf543e4abefd6f2286563fd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 20 Jul 2020 16:09:29 -0600 Subject: [PATCH] cleanup --- log/log.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 log/log.go diff --git a/log/log.go b/log/log.go deleted file mode 100644 index fbf03e4..0000000 --- a/log/log.go +++ /dev/null @@ -1,26 +0,0 @@ -package log - -import ( - "io" - "log" - "os" -) - -var ( - //Logoutput -- passing the output writer from main - Loginfo *log.Logger - Logdebug *log.Logger - LogFlags = log.Ldate | log.Lmicroseconds | log.Lshortfile -) - -func init() { - Loginfo = log.New(os.Stdout, "INFO: ", LogFlags) - Logdebug = log.New(os.Stdout, "DEBUG: ", LogFlags) -} - -//InitLogging -- after main sets up output, it will init all packages InitLogging -//I am sure I am doing this wrong, but I could not find a way to have package level -//logging with the flags I wanted and the ability to run lumberjack file management -func InitLogging(logoutput io.Writer) { - Loginfo.SetOutput(logoutput) -}