public class JavetStandardConsoleInterceptor extends BaseJavetConsoleInterceptor
IJavetDirectCallable.DirectCall, IJavetDirectCallable.GetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.GetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndResult<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndResult<E extends java.lang.Exception>| Modifier and Type | Field and Description |
|---|---|
protected java.io.PrintStream |
debug
The Debug.
|
protected java.io.PrintStream |
error
The Error.
|
protected java.io.PrintStream |
info
The Info.
|
protected java.io.PrintStream |
log
The Log.
|
protected java.io.PrintStream |
trace
The Trace.
|
protected java.io.PrintStream |
warn
The Warn.
|
JS_FUNCTION_DEBUG, JS_FUNCTION_ERROR, JS_FUNCTION_INFO, JS_FUNCTION_LOG, JS_FUNCTION_TRACE, JS_FUNCTION_WARN, PROPERTY_CONSOLE, SPACEv8Runtime| Constructor and Description |
|---|
JavetStandardConsoleInterceptor(V8Runtime v8Runtime)
Instantiates a new Javet standard console interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consoleDebug(V8Value... v8Values)
Console debug.
|
void |
consoleError(V8Value... v8Values)
Console error.
|
void |
consoleInfo(V8Value... v8Values)
Console info.
|
void |
consoleLog(V8Value... v8Values)
Console log.
|
void |
consoleTrace(V8Value... v8Values)
Console trace.
|
void |
consoleWarn(V8Value... v8Values)
Console warn.
|
java.io.PrintStream |
getDebug()
Gets debug.
|
java.io.PrintStream |
getError()
Gets error.
|
java.io.PrintStream |
getInfo()
Gets info.
|
java.io.PrintStream |
getLog()
Gets log.
|
java.io.PrintStream |
getTrace()
Gets trace.
|
java.io.PrintStream |
getWarn()
Gets warn.
|
void |
setDebug(java.io.PrintStream debug)
Sets debug.
|
void |
setError(java.io.PrintStream error)
Sets error.
|
void |
setInfo(java.io.PrintStream info)
Sets info.
|
void |
setLog(java.io.PrintStream log)
Sets log.
|
void |
setTrace(java.io.PrintStream trace)
Sets trace.
|
void |
setWarn(java.io.PrintStream warn)
Sets warn.
|
concat, getCallbackContexts, register, unregistergetV8Runtimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetV8Runtimeprotected java.io.PrintStream debug
protected java.io.PrintStream error
protected java.io.PrintStream info
protected java.io.PrintStream log
protected java.io.PrintStream trace
protected java.io.PrintStream warn
public JavetStandardConsoleInterceptor(V8Runtime v8Runtime)
v8Runtime - the V8 runtimepublic void consoleDebug(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleDebug in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic void consoleError(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleError in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic void consoleInfo(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleInfo in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic void consoleLog(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleLog in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic void consoleTrace(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleTrace in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic void consoleWarn(V8Value... v8Values)
BaseJavetConsoleInterceptorconsoleWarn in class BaseJavetConsoleInterceptorv8Values - the V8 valuespublic java.io.PrintStream getDebug()
public java.io.PrintStream getError()
public java.io.PrintStream getInfo()
public java.io.PrintStream getLog()
public java.io.PrintStream getTrace()
public java.io.PrintStream getWarn()
public void setDebug(java.io.PrintStream debug)
debug - the debugpublic void setError(java.io.PrintStream error)
error - the errorpublic void setInfo(java.io.PrintStream info)
info - the infopublic void setLog(java.io.PrintStream log)
log - the logpublic void setTrace(java.io.PrintStream trace)
trace - the tracepublic void setWarn(java.io.PrintStream warn)
warn - the warn