Added dcs.log functionality

If the dcs object has been defined, will use dcs.log instead of console.log to output errors.