// NewLogger sets the vagrant logger to the given path func NewLogger(path string) { var err error // create a file logger if Log, err = lumber.NewAppendLogger(path); err != nil { config.Fatal("[util/server/log] lumber.NewAppendLogger() failed", err.Error()) } }
// init func init() { // create a console logger Console = lumber.NewConsoleLogger(lumber.INFO) // create a file logger if Log, err = lumber.NewAppendLogger(Root + "/nanobox.log"); err != nil { Fatal("[config/log] lumber.NewAppendLogger() failed", err.Error()) } }
// NewLogger sets the vagrant logger to the given path func NewLogger(path string) { var err error // create a file logger (append if already exists) if Log, err = lumber.NewAppendLogger(path); err != nil { config.Fatal("[util/vagrant/log] lumber.NewAppendLogger() failed", err.Error()) } logFile = path }
// NewLogger sets the vagrant logger to the given path func NewLogger(path string) { var err error // create a file logger (append if already exists) if Log, err = lumber.NewAppendLogger(path); err != nil { config.Fatal("[util/server/log] lumber.NewAppendLogger() failed", err.Error()) } logFile = path fmt.Printf(stylish.Bullet("Created %s", path)) }