|
|
|
|
|
by jbail
4590 days ago
|
|
Thanks for the comment! An insanely noisy console was bugging me this week, so I whipped up the Lumberjack script in about an hour this Saturday while my daughter was napping. This is a super quick and dirty version #1 to prove that it can work and would work as I imagined. I agree the "stream" name string stuff is wonky and could be better. I've got some ideas I'll be playing with tomorrow. Basically taking what I have and wrapping it up in a constructor, so console.stream('foo') actually creates a 'foo' stream. You could then do (as I believe you suggest) var foo = console.stream('foo'); foo.log(1); foo.warn(2); etc... |
|