index.js
function logger(stream){
	return (...text) => {
		text.map(text => {
			console.log(text)
			stream.write(`${Date.now()} - ${JSON.stringify(text)}\n`)
		})
	}
}
function logger(stream){
	return (...text) => {
		text.map(text => {
			console.log(text)
			stream.write(`${Date.now()} - ${JSON.stringify(text)}\n`)
		})
	}
}
Constructs the log function.
@param {writeStream} stream