Home Reference Source

stdlib/console.js

/**
 * Handles output to the client console
 * @class
 */
export class console {
	/** Logs a message to the dev console
	 * @param msg - The message to display
	 */
	static log(msg) {
		global.__std_ConsoleLog(msg);
	}

	/** Logs an info message to the dev console
	 * @param msg - The message to display
	 */
	static info(msg) {
		global.__std_ConsoleLog(msg);
	}

	/** Displays a popup with the given message and crashes the client
	 * @param msg - The message to display
	 */
	static error(msg) {
		global.__std_ConsoleError(msg);
	}
}