Skip to content

Releases: seanpk/simple-log-tee

defect fix when explicitly setting a second stream for LogFileTee()

22 Dec 16:10

Choose a tag to compare

BREAKING API CHANGE: objects are no longer exported.

22 Dec 16:02

Choose a tag to compare

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').

Choose any second stream when teeing to a file

19 Dec 19:13

Choose a tag to compare

optionally provide a second stream (or null for none) to LogFileTee() - the default is stdout, which matches the behavior from before

In addition to anywhere, you can now tee to nowhere!

19 Dec 18:29

Choose a tag to compare

Added convenience function teeToNowhere() that sends whatever is written to it nowhere.

now with teeToStdoutOnly()!

19 Dec 17:33

Choose a tag to compare

Added a convenience function for writing to stdout only.

Working release.

19 Dec 14:40

Choose a tag to compare

Basic, and that might be all it ever needs to be.