Permalink
Browse files

add log.info example

  • Loading branch information...
1 parent e0c2000 commit 9f99f1922374707f314ac6deaf6956972abcc79e Robert Newson committed Apr 19, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
@@ -214,6 +214,11 @@ doc.attachment("attachment name");
// Extract text from the named attachment and index it to a separate field
doc.attachment("attachment name", {"field":"attachments"});
+
+// log an event (trace, debug, info, warn and error are available)
+if (doc.foo) {
+ log.info("doc has foo property!");
+}
</pre>
<h3>Example Transforms</h3>

0 comments on commit 9f99f19

Please sign in to comment.