Malese / vmware-fs-ctl

start|stop|restart|status script for running a headless OS in VmWare Fusion on OSx including handle mounting/unmounting of the OS´s root filesystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce logging

Malese opened this issue · comments

Introduce a history.log and a error.log.
Preferably under /var/log/vmware-fs-ctl, but configurable.
These are to be created if not already there.
Add timestamp to messages in logs.

On first run, it will create a directory and a history and error log-file. The directory is a compound of the configurable LOG_IN_DIR variable and the string "/vmware-fs-ctl". In there a history.log and error.log files will be created.

history.log records the same as stdout from the script but with datestamp added.
error.log holds errors from commands within the script.