console Class Reference
[Globals]
Description
The console class provides access to the RealityServer log file. This class can be used to log messages to the RealityServer log file without having to call the log_entry command.
Static Functions
- assert( Object value, String message)
- Asserts that the first argument is truthy, and if not logs an error message and throws an exception. More...
- debug( String message)
- Logs message at the 'debug' debug level with category 'V8'. More...
- error( String message)
- Logs message at the 'error' error level with category 'V8'. More...
- info( String message)
- Logs message at the 'info' error level with category 'V8'. More...
- log( String message)
- Logs message at the 'info' error level with category 'V8'. More...
- time( String label)
- Starts a new timer. More...
- timeEnd( String label)
- Stops a timer and prints elapsed time to the console. More...
- timeStamp( String label)
- Logs the current elapsed time of the given timer. More...
- warn( String message)
- Logs message at the 'warning' error level with category 'V8'. More...
Functions
- console.assert( Object value, String message) [static]
-
Asserts that the first argument is truthy, and if not logs an error message and throws an exception.
Parameters
- value
- the value to assert on
- message
- the message to log on failure
- console.debug( String message) [static]
-
Logs message at the 'debug' debug level with category 'V8'. Any additionally arguments will be converted to strings and appended to message with space separators before logging.
Parameters
- message
- the message to log.
- console.error( String message) [static]
-
Logs message at the 'error' error level with category 'V8'. Any additionally arguments will be converted to strings and appended to message with space separators before logging.
Parameters
- message
- the message to log.
- console.info( String message) [static]
-
Logs message at the 'info' error level with category 'V8'. Any additionally arguments will be converted to strings and appended to message with space separators before logging.
Parameters
- message
- the message to log.
- console.log( String message) [static]
-
Logs message at the 'info' error level with category 'V8'. Any additionally arguments will be converted to strings and appended to message with space separators before logging.
Parameters
- message
- the message to log.
- console.time( String label) [static]
-
Starts a new timer. Call timeEnd to stop the timer and print the elapsed time to the console.
Note:timers are isolate specific so timers created in a given execution environment are not guaranteed to exist in another.
Parameters
- label
- optional label to identify the timer.
- console.timeEnd( String label) [static]
-
Stops a timer and prints elapsed time to the console.
Parameters
- label
- optional label to identify the timer.
- console.timeStamp( String label) [static]
-
Logs the current elapsed time of the given timer.
Parameters
- label
- optional label to identify the timer.
- console.warn( String message) [static]
-
Logs message at the 'warning' error level with category 'V8'. Any additionally arguments will be converted to strings and appended to message with space separators before logging.
Parameters
- message
- the message to log.