code: function logMessage (message) {
    if (!process.send) {
      console.log(message)
    } else {
      process.send(message)
    }
  }
docs: if forked as child, send output message via ipc to parent otherwise output to console