Add options to print hostname and log level in output

This patch introduces the ability to output the log level as text, and to print the short hostname with each entry. By default these options are off.

The addition of printLog is to support log consumers who do not understand colours, and hostname is to facilitate log aggregation.