[SEBA-342] Publishing logs to kafka
Change-Id: Iaa72945dfd59a5d151cad14ff593eb299229fb3e
diff --git a/bbsim.go b/bbsim.go
index 13f95f1..33c6cba 100644
--- a/bbsim.go
+++ b/bbsim.go
@@ -17,12 +17,12 @@
package main
import (
- "gerrit.opencord.org/voltha-bbsim/core"
"log"
+
+ "gerrit.opencord.org/voltha-bbsim/common/logger"
+ "gerrit.opencord.org/voltha-bbsim/core"
)
-
-
func printBanner() {
log.Println(" ________ _______ ________ ")
log.Println(" / ____ | / ____ | / ______/ __ ")
@@ -33,10 +33,13 @@
}
func main() {
+
// CLI Shows up
printBanner()
opt := core.GetOptions()
+ logger.Setup(opt.KafkaBroker, "DEBUG")
mediator := core.NewMediator(opt)
+
mediator.Start()
}