3

Is there a way to use winston or bunyan with CasperJS ? I couldn't get either to load correctly.

I tried the proxy method described in Can't require Underscore with CasperJS, but that also didn't work.

Community
  • 1
  • 1
Irshad
  • 199
  • 2
  • 9
  • No... possible duplicate of [Use a node module from casperjs](http://stackoverflow.com/questions/24387854/use-a-node-module-from-casperjs) – Artjom B. Oct 18 '14 at 18:55
  • I browsed through winston and bunyan sources. You could try to rewrite the whole thing to use PhantomJS modules, but this will be likely very complex in comparison to just writing your own logging module. – Artjom B. Oct 18 '14 at 19:00
  • `patchRequire(...)` doesn't work. Seems like i'll have to whip up a custom logging solution for my case! – Irshad Oct 18 '14 at 19:46

0 Answers0