zaydek / retro-legacy

[WIP] Your friendly neighborhood React static-site generator
MIT License
2 stars 0 forks source link

[Todo] Revise loggers.Stderr.Println; os.Exit(1) to loggers.Stderr.Fatalln #23

Closed zaydek closed 3 years ago

zaydek commented 3 years ago

We also may want to add a way to log warnings. If so, we need to rename loggers.Stderr to something like loggers.Info, loggers.Warning, and loggers.Error, which seems fine. Warning simply needs to show a yellow warning label. I don’t think times / dates are important for this kind of logging.

It might be worth adding something like loggers.ErrorWithStackTrace for edge cases where we want more insights (possibly for unexpected errors).

zaydek commented 3 years ago

Reason it’s slightly annoying doing os.Exit(1) is because we have so many of them.

zaydek commented 3 years ago

This has been added -- just needs to be integrated.