set options.logging to func for external logging

*replaced console.logs with universal log reference, pointed at console.log
*overwrites log reference to options.logging, if it is a function.