Methods

ConLog(text, typeopt) → {void}

This is the core logging function.
Parameters:
NameTypeAttributesDescription
text*You can log anything, not just text
typenumber | string<optional>
TYPE OPTIONS: - Error: {1, `er`, `err`, `error`} - Success: {2, `ok`} - Warning: {3, `wa`, `war`, `warn`, `warning`} - Object: {4, `so`, `ob`, `obj`, `object`, `showobject`}
Returns:
Type: 
void
Example
ConLog('', 'ok')

ConLogHookPost(logType, logText)

Function to post logs to a webhook.
Parameters:
NameTypeDescription
logTypestring | numberdefines what type of log is being sent.
logTextstring | objecttext or object to be sent to the webhook.

ConLogInit(status) → {void}

Initialize ConLog with global enable/disable setting.
Parameters:
NameTypeDescription
statusbooleanMaster switch for all console logging - true: Enable all ConLog output (default) - false: Completely disable all ConLog output
Returns:
Type: 
void

ConLogSet(options) → {void}

Configure which log types are displayed. All parameters default to true, so you only need to specify false values.
Parameters:
NameTypeDescription
optionsobjectConfiguration options
Properties
NameTypeAttributesDefaultDescription
errorboolean<optional>
trueDisplay error messages (type 1)
okboolean<optional>
trueDisplay success/OK messages (type 2)
warningboolean<optional>
trueDisplay warning messages (type 3)
objectboolean<optional>
trueDisplay object dumps (type 4)
colorboolean<optional>
trueEnable colored console output
Returns:
Type: 
void
Example
ConLogSet({error: false, ok: false, warning: false, object: false, color: false})

ConLogStartMsg(status) → {void}

Display startup message showing current ConLog settings. Useful for debugging or confirming ConLog is properly initialized.
Parameters:
NameTypeDescription
statusbooleanWhether to display startup message (default: false)
Returns:
Type: 
void

ConLogSyntax(syntaxObject) → {object}

Function to highlight objects.
Parameters:
NameTypeDescription
syntaxObjectobjectobject for syntax highlighter
Returns:
Type: 
object

ConLogWebhook(status, provider, url)

Initialize ConLogWebhook to send logs to a webhook.
Parameters:
NameTypeDescription
statusbooleanEnable or disable webhook logging - true: Enable all ConLog output to the specified webhook URL - false: Completely disable all ConLog output to webhooks (default)
providerstringThe webhook provider (e.g., "discord")
urlstringThe webhook URL to send messages to

(async) webhookDiscord(type, text)

Function that sends to discord webhook.
Parameters:
NameTypeDescription
typestring | numberdefines what type of log is being sent
textstring | objecttext or object to be sent to the webhook