Konubinix' opinionated web of thoughts

Clk Log Levels

Fleeting

clk log levels

Any sensible command line interface should come with sensible log levels.

clk provides out of the box the following levels, from the least critical to the most one.

  1. develop
  2. debug
  3. action
  4. status
  5. info
  6. deprecated
  7. warning
  8. error
  9. critical

Up to you to decide where to put each log. We think that those names are quite self sufficient.

If you want to add some logging in a shell script, you can call clk log quite easily.

As you can see, we try to provide sensible colors as well.

Notes linking here