OKay. Did some more looking around and a little experimenting only to find out the line in error should read:

$log_filename = ‘emoncms.log’;

So have now logged in. Now for getting the emonpi and localhost to communicate.

Again Thanks Robert and Frogmore42