Methods

ConLog(text, typeopt) → {void}

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

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