Static
reuseReturns an existing RemoteConsole for the given URL and timeout or creates a new one.
If a new one is created, it will be saved for later reuse.
The URL of the remote logger.
Optional
connectTimeout: number = DEFAULT_TIMEOUTThe timeout in ms for a remote connection to be considered failed. Default is 1500.
Creates a new RemoteConsole and attempts to connect to the logger at the given URL.
The URL of the remote logger.
Optional
connectTimeout: number = DEFAULT_TIMEOUTThe timeout in ms for a connection to be considered failed.
Readonly
debugEmits a message with ID console.debug
.
Readonly
destroyDisconnects and destroys the RemoteConsole. Cannot be undone.
Readonly
errorEmits a message with ID console.error
.
Readonly
hasReturns true if the client has been disconnected for more than the connect timeout.
Readonly
infoEmits a message with ID console.info
.
Readonly
logEmits a message with ID console.log
.
Readonly
warnEmits a message with ID console.warn
.
Connects to a remote socket.io server and logs messages to it.
In the root of the Git repository, there is a simple example server that listens for these messages and logs them to the local console.