kvz / bash3boilerplate

Templates to write better Bash scripts
http://bash3boilerplate.sh
MIT License
2.08k stars 196 forks source link

Question : Why use spaces before log level display? #134

Closed carlos-reynosa closed 4 years ago

carlos-reynosa commented 4 years ago

Why add spaces before the displayed log level? image

https://github.com/kvz/bash3boilerplate/blob/269627deec121839cf11cdcfab9f1fe3c421b2b4/main.sh#L98

kvz commented 4 years ago

It’s left padded so that all the different levels line up at the right side, this makes it easier to parse the strings and levels for human brains