Private
hostPrivate
logPrivate
loggerPrivate
portPrivate
surroundAdds a log
to the current LogBatch
that only sends if the condition
resolves to true
.
The condition function that determines whether the log gets sent to the remote.
The message for the current log.
Optional
surround: numberThe optional surrounding amount of code lines to include in the code snippet.
Adds a log
to the current LogBatch
if the CODECTRL_DEBUG
environment
variable is present.
The message for the current log.
Optional
surround: numberThe optional surrounding amount of code lines to include in the code snippet.
Generated using TypeDoc
The
LogBatch
helper class to help with creating multiple logs without sending, and sending the created logs at a chosen point in time. Use in conjunction withLogger.startBatch()
andLogger.sendBatch()
.