ServerJS/API/console: Difference between revisions

Redacted print, pass, and fail.
(Added a summary.)
(Redacted print, pass, and fail.)
 
Line 9: Line 9:
; warn(message) : logs a warning message
; warn(message) : logs a warning message
; error(message) : logs an error message
; error(message) : logs an error message
; debug(message) : logs a debug message
; pass(name) : logs the success of a test
; fail(name) : logs the failure of a test
; print(message, [level]): logs a message.  The level may be any of "log", "info", "warn", "error", "debug", "pass", "fail", null, or undefined.  Other labels beginning with "x" and a platform-specific identifier are reserved for the corresponding platform.


Messages may be any reference.  Names must be strings.
Messages may be any reference.  Names must be strings.
171

edits