class Console extends Object with StObject with Console_
- Annotations
- @JSType() @JSGlobal("console.Console") @native()
- Source
- global.scala
- Alphabetic
- By Inheritance
- Console
- Console_
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Console(stdout: WritableStream, stderr: Unit, ignoreErrors: Boolean)
- new Console(stdout: WritableStream, stderr: WritableStream, ignoreErrors: Boolean)
- new Console(stdout: WritableStream, stderr: WritableStream)
- new Console(stdout: WritableStream)
- new Console(options: ConsoleConstructorOptions)
- new Console()
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Console: ConsoleConstructor
- Definition Classes
- Console_
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assert(value: Any, message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def assert(value: Any, message: java.lang.String, optionalParams: Any*): Unit
A simple assertion test that verifies whether
valueis truthy.A simple assertion test that verifies whether
valueis truthy. If it is not, anAssertionErroris thrown. If provided, the errormessageis formatted usingutil.format()and used as the error message.- Definition Classes
- Console_
- def clear(): Unit
When
stdoutis a TTY, callingconsole.clear()will attempt to clear the TTY.When
stdoutis a TTY, callingconsole.clear()will attempt to clear the TTY. Whenstdoutis not a TTY, this method does nothing.- Definition Classes
- Console_
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def count(label: java.lang.String): Unit
- Definition Classes
- Console_
- def count(): Unit
Maintains an internal counter specific to
labeland outputs tostdoutthe number of timesconsole.count()has been called with the givenlabel.Maintains an internal counter specific to
labeland outputs tostdoutthe number of timesconsole.count()has been called with the givenlabel.- Definition Classes
- Console_
- def countReset(label: java.lang.String): Unit
- Definition Classes
- Console_
- def countReset(): Unit
Resets the internal counter specific to
label.Resets the internal counter specific to
label.- Definition Classes
- Console_
- def debug(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def debug(message: Any, optionalParams: Any*): Unit
The
console.debug()function is an alias forconsole.log.The
console.debug()function is an alias forconsole.log.- Definition Classes
- Console_
- def dir(obj: Any, options: InspectOptions): Unit
- Definition Classes
- Console_
- def dir(obj: Any): Unit
Uses
util.inspectonobjand prints the resulting string tostdout.Uses
util.inspectonobjand prints the resulting string tostdout. This function bypasses any custominspect()function defined onobj.- Definition Classes
- Console_
- def dirxml(data: Any*): Unit
This method calls
console.logpassing it the arguments received.This method calls
console.logpassing it the arguments received. Please note that this method does not produce any XML formatting- Definition Classes
- Console_
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def error(message: Any, optionalParams: Any*): Unit
Prints to
stderrwith newline.Prints to
stderrwith newline.- Definition Classes
- Console_
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def group(label: Any*): Unit
Increases indentation of subsequent lines by two spaces.
Increases indentation of subsequent lines by two spaces. If one or more
labels are provided, those are printed first without the additional indentation.- Definition Classes
- Console_
- def groupCollapsed(label: Any*): Unit
The
console.groupCollapsed()function is an alias forconsole.group.The
console.groupCollapsed()function is an alias forconsole.group.- Definition Classes
- Console_
- def groupEnd(): Unit
Decreases indentation of subsequent lines by two spaces.
Decreases indentation of subsequent lines by two spaces.
- Definition Classes
- Console_
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def info(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def info(message: Any, optionalParams: Any*): Unit
The
console.infofunction is an alias forconsole.log.The
console.infofunction is an alias forconsole.log.- Definition Classes
- Console_
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def log(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def log(message: Any, optionalParams: Any*): Unit
Prints to
stdoutwith newline.Prints to
stdoutwith newline.- Definition Classes
- Console_
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def profile(label: java.lang.String): Unit
- Definition Classes
- Console_
- def profile(): Unit
This method does not display anything unless used in the inspector.
This method does not display anything unless used in the inspector. Starts a JavaScript CPU profile with an optional label.
- Definition Classes
- Console_
- def profileEnd(label: java.lang.String): Unit
- Definition Classes
- Console_
- def profileEnd(): Unit
This method does not display anything unless used in the inspector.
This method does not display anything unless used in the inspector. Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
- Definition Classes
- Console_
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def table(tabularData: Any, properties: Array[java.lang.String]): Unit
- Definition Classes
- Console_
- def table(tabularData: Any): Unit
This method does not display anything unless used in the inspector.
This method does not display anything unless used in the inspector. Prints to
stdoutthe arrayarrayformatted as a table.- Definition Classes
- Console_
- def time(label: java.lang.String): Unit
- Definition Classes
- Console_
- def time(): Unit
Starts a timer that can be used to compute the duration of an operation.
Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique
label.- Definition Classes
- Console_
- def timeEnd(label: java.lang.String): Unit
- Definition Classes
- Console_
- def timeEnd(): Unit
Stops a timer that was previously started by calling
console.timeand prints the result tostdout.Stops a timer that was previously started by calling
console.timeand prints the result tostdout.- Definition Classes
- Console_
- def timeLog(label: Unit, data: Any*): Unit
- Definition Classes
- Console_
- def timeLog(label: java.lang.String, data: Any*): Unit
For a timer that was previously started by calling
console.time, prints the elapsed time and otherdataarguments tostdout.For a timer that was previously started by calling
console.time, prints the elapsed time and otherdataarguments tostdout.- Definition Classes
- Console_
- def timeStamp(label: java.lang.String): Unit
- Definition Classes
- Console_
- def timeStamp(): Unit
This method does not display anything unless used in the inspector.
This method does not display anything unless used in the inspector. Adds an event with the label
labelto the Timeline panel of the inspector.- Definition Classes
- Console_
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def trace(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def trace(message: Any, optionalParams: Any*): Unit
Prints to
stderrthe string 'Trace :', followed by theutil.formatformatted message and stack trace to the current position in the code.Prints to
stderrthe string 'Trace :', followed by theutil.formatformatted message and stack trace to the current position in the code.- Definition Classes
- Console_
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def warn(message: Unit, optionalParams: Any*): Unit
- Definition Classes
- Console_
- def warn(message: Any, optionalParams: Any*): Unit
The
console.warnfunction is an alias forconsole.error.The
console.warnfunction is an alias forconsole.error.- Definition Classes
- Console_
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated