logWarning(msg);
Logs and displays a warning. If several errors or warnings must be logged, just call this function several times; if possible the console is opened as soon as possible then.
See also: print(), logError(), alert()