This AI is still in early stages of development.
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 6 Next »
out(message, self, method);
String
Array of String
The message to output – either a single string or an array of strings.
Optional descriptor object, used to create a prefix to the message before it is output.
Default: No prefix
Constant defining desired output destination:
Default: out.DEFAULT
out.DEFAULT
The return value of the output method will be returned (see documentation for out.* constants above for more information).
out.*
var self = {file: "foo.js", ver: 1.2}; function bar() { out("bar() called", self, out.CONSOLE); } bar(); // "[foo.js v1.2] bar() called"
function foo() { var names = ["bob", "jim", "kate"]; out(names); } foo(); // outputs each of the names on a new line to OUT_DEFAULT
This feature requires:
Jump to:
Related articles:
Related APIs:
Topics: