Logging using Javascript Script Enrichment

58 views
Skip to first unread message

Christoph Bünte

unread,
Aug 27, 2015, 6:52:19 AM8/27/15
to Snowplow
Is there a way to write something to the enricher log from within the Javascript enrichment script? I guess console.log() wouldn't work. I tried but did not see anything.

Thx, Christoph

Alex Dean

unread,
Aug 27, 2015, 6:57:02 AM8/27/15
to Snowplow
Not that I know of - interesting idea though...

A

On Thu, Aug 27, 2015 at 11:52 AM, Christoph Bünte <chri...@avari.io> wrote:
Is there a way to write something to the enricher log from within the Javascript enrichment script? I guess console.log() wouldn't work. I tried but did not see anything.

Thx, Christoph

--
You received this message because you are subscribed to the Google Groups "Snowplow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snowplow-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Co-founder
Snowplow Analytics
The Roma Building, 32-38 Scrutton Street, London EC2A 4RQ, United Kingdom
+44 (0)203 589 6116
+44 7881 622 925
@alexcrdean

Fred Blundun

unread,
Aug 27, 2015, 7:14:12 AM8/27/15
to snowpl...@googlegroups.com
You should be able to access Java classes from inside a script like this:

"importPackage(java.lang); System.out.println('hello world!');"

Christoph Bünte

unread,
Aug 27, 2015, 11:39:32 AM8/27/15
to Snowplow
That workes fine, as we redirect STDOUT and STDERR into the same log file. Thx.
Reply all
Reply to author
Forward
0 new messages