Very basic first version of the logmonitor script.