Console Log Action

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About

Table of Contents

1 Console Log Action - #console_log {}

This performs a safe console.log() call to print something some text or Erlang terms to your browser's javascript console. If your browser doesn't support console.log(), the call is ignored.


%% Sending text
wf:wire(#console_log { text="Some text" }),

%% Sending erlang terms
wf:wire(#console_log { text={some,random,<<"Erlang">>,"Terms"} }),

%% Convenience method
wf:console_log("Some text to send to the console"),


text - (string or Erlang term)
If text is a string, it'll simply print the text to the console. If it's an Erlang term, the terms will be converted to a string and sent to the browser.

Date: 2014-11-12 19:51:29 CST

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0


Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>

comments powered by Disqus