netzego / bashskel

0 stars 0 forks source link

add logfile logic and cli flag #5

Closed netzego closed 1 year ago

netzego commented 1 year ago

add a logic for logfile and actually do the logging (to a file). also add --log and --logfile flag and option to set logging behavior via cli arguments.

netzego commented 1 year ago

LOGFILE must be available outside of main. but load_configfile() and parse_args() are called inside main. this need a refactor to work.

netzego commented 1 year ago
netzego commented 1 year ago

do we need LOG and LOGFILE? or can we just use LOGFILE? maybe introduce LOGFILE also in vars.bash.