The log batch to be sent with this Logger.
The hostname/IP/domain of the remote CodeCTRL server for this batch to be sent to.
The port that the remote CodeCTRL server is listening on.
Private batchPrivate batchPrivate logSends the current logBatch created created by the LogBatch helper
class or the constructor of this class.
Static createStatic Private getStatic Private getStatic Private getStatic logThe basic log function.
The message to be
sent to the logger. Accepts any T that implements a toString function.
Optional surround: numberThe amount of surrounding code to include in the code snippet.
Optional host: stringThe host of the CodeCTRL instance.
Optional port: stringThe port of the CodeCTRL instance.
Static logA log function that takes an anonymous function, and only logs if the function returns a true condition.
The anonymous function that determines whether a log is sent.
The message to be
sent to the logger. Accepts any T that implements a toString function.
Optional surround: numberThe amount of surrounding code to include in the code snippet.
Optional host: stringThe host of the CodeCTRL instance.
Optional port: stringThe port of the CodeCTRL instance.
Static logA log function similar to Logger.logIf that only takes effect if the
environment variable CODECTRL_DEBUG is present or not.
The message to be
sent to the logger. Accepts any T that implements a toString function.
Optional surround: numberThe amount of surrounding code to include in the code snippet.
Optional host: stringThe host of the CodeCTRL instance.
Optional port: stringThe port of the CodeCTRL instance.
Static startGenerated using TypeDoc
Creates a new
Loggerwith a pre-defined log batch, hostname and port.