Add debug() function to khepri cmd and lib

This commit is contained in:
Alexander Neumann 2014-11-16 15:30:08 +01:00
parent 4b0fae6099
commit bd105b69a8
3 changed files with 44 additions and 1 deletions

View file

@ -26,7 +26,7 @@ func initDebugLogger() *log.Logger {
// open logger
l := log.New(io.MultiWriter(os.Stderr, f), "DEBUG: ", log.LstdFlags)
fmt.Fprintf(os.Stderr, "logging activated, writing log file %s", filename)
fmt.Fprintf(os.Stderr, "logging activated, writing log file %s\n", filename)
l.Printf("khepri %s", version)
return l