Log behaviour if no log file path is provided
Log behaviour if no log file path is provided

Robustness of the log function inproved.
If no log file path is provided, the function echos the log data to the
standard output

fritz-hh/scripts_NAS4Free,dragon788/scripts_NAS4Free,brianonn/scripts_NAS4Free