func main() { if err := logger.SimpleSetup(); err != nil { fmt.Fprintf(os.Stderr, "failed to activate logging: %v\n", err) os.Exit(1) } logger.Debugf("fakestore starting") if err := run(); err != nil { fmt.Fprintf(os.Stderr, "error: %v\n", err) os.Exit(1) } }
func init() { err := logger.SimpleSetup() if err != nil { fmt.Fprintf(Stderr, i18n.G("WARNING: failed to activate logging: %v\n"), err) } }
func init() { err := logger.SimpleSetup() if err != nil { fmt.Fprintf(os.Stderr, "WARNING: failed to activate logging: %s\n", err) } }