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 8 Next »
out(message[, self[, method[, config]]]);
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
Optional method-specific config:
out.CHAT
out.ERROR
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}; out("hello", self, out.CONSOLE); // "[foo.js v1.2] hello"
out(["bob", "jim", "kate"]); // outputs each name on a new line to out.DEFAULT
This feature requires:
Jump to:
Related articles:
Related APIs:
Topics: