simple-log-tee
Log, and write, to multiple streams at the same time.
This is really handy for logging output to the console and to a file at the same time.
usage
var stee = ; var doubleStd = stee;doubleStd;doubleStd;doubleStd; stee;stee; var dualRecorder = stee;dualRecorder; var fileOnly = stee;fileOnly;
Note: as of version 0.2.0, the API has been changed to no longer export classes that you create with new
, but functions that create the objects for you.
Replace new stee.LogTee([stream1, stream2, stream3])
with stee.createLogTee([stream1, stream2, stream3])
.
Replace new stee.LogFileTee('my.log')
with stee.createLogFileTee('my.log')
.