Skip to content

Log Misc

logArray(this, array, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:55

Helper function to log all of the values in an array.

void

readonly unknown[]

The array to log.

string

Optional. The name of the array, which will be logged before the elements.

void


logCollectibleTypes(this, collectibleTypes, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:79

Helper function to log the names of a collectible type array.

void

readonly CollectibleType[]

The collectible types to log.

string

Optional. The name of the array, which will be logged before the elements.

void


logColor(this, color, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:102

Helper function to log a Color object.

void

Color

The Color object to log.

string

Optional. The name of the object, which will be logged before the properties.

void


logDamageFlags(this, damageFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:111

Helper function to log every damage flag that is turned on. Useful when debugging.

void

DamageFlagValue | BitFlags<DamageFlagValue>

void


logDisplayFlags(this, displayFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:119

Helper function to log every display flag that is turned on. Useful when debugging.

void

DisplayFlagValue | BitFlags<DisplayFlagValue>

void


logEntityFlags(this, entityFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:127

Helper function to log every entity flag that is turned on. Useful when debugging.

void

EntityFlagValue | BitFlags<EntityFlagValue>

void


logEntityID(this, entity): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:134

void

Entity

void


logFlags<T>(this, flags, flagEnum, description?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:140

Helper function for logging every flag that is turned on. Useful when debugging.

T extends BitFlag | BitFlag128

void

T | BitFlags<T>

ReadonlyRecord<string, T>

string = ""

void


logGameStateFlags(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:170

Helper function for logging every game state flag that is turned on. Useful when debugging.

void

void


logItemPoolTypes(this, itemPoolTypes, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:195

Helper function to log the names of a item pool type array.

void

readonly ItemPoolType[]

The item pool types to log.

string

Optional. The name of the array, which will be logged before the elements.

void


logKColor(this, kColor, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:218

Helper function to log a KColor object.

void

KColor

The KColor object to log.

string

Optional. The name of the object, which will be logged before the properties.

void


logLevelStateFlags(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:227

Helper function for logging every level state flag that is turned on. Useful when debugging.

void

void


logMap(this, map, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:253

Helper function to log a TSTL Map.

void

ReadonlyMap<string | number, unknown>

The TSTL Map to log.

string

Optional. The name of the map, which will be logged before the elements.

void


logMusic(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:277

void

void


logPlayerEffects(this, player): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:284

void

EntityPlayer

void


logPlayerHealth(this, player): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:315

void

EntityPlayer

void


logProjectileFlags(this, projectileFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:338

Helper function for logging every projectile flag that is turned on. Useful when debugging.

void

ProjectileFlagValue | BitFlags<ProjectileFlagValue>

void


logRoom(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:346

Helper function for logging information about the current room.

void

void


logSeedEffects(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:378

Helper function for logging every seed effect (i.e. Easter Egg) that is turned on for the particular run.

void

void


logSet(this, set, name?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:405

Helper function to log a TSTL Set.

void

ReadonlySet<string | number>

The TSTL Set to log.

string

Optional. The name of the set, which will be logged before the elements.

void


logSounds(this): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:427

Helper function for logging every sound effect that is currently playing.

void

void


logTable(this, luaTable, parentTables?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:447

Helper function for logging every key and value of a Lua table. This is a deep log; the function will recursively call itself if it encounters a table within a table.

This function will only work on tables that have string keys (because it logs the keys in order, instead of randomly). It will throw a run-time error if it encounters a non-string key.

In order to prevent infinite recursion, this function will not log a sub-table when there are 10 or more parent tables.

void

unknown

number = 0

void


logTableDifferences<K, V>(this, table1, table2): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:496

Helper function to log the differences between the entries of two tables. Note that this will only do a shallow comparison.

K extends AnyNotNil

V

void

LuaMap<K, V>

LuaMap<K, V>

void


logTableKeys(this, luaTable): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:540

Helper function to log the keys of a Lua table. This is not a deep log; only the keys of the top-most table will be logged.

This function is useful for tables that have recursive references.

void

unknown

void


logTableShallow<K, V>(this, luaTable): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:567

Helper function to log every table key and value. This is a shallow log; the function will not recursively traverse sub-tables.

This function will only work on tables that have string keys (because it logs the keys in order, instead of randomly). It will throw a run-time error if it encounters a non-string key.

K extends AnyNotNil

V

void

LuaMap<K, V>

void


logTearFlags(this, tearFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:594

Helper function for log every tear flag that is turned on. Useful when debugging.

void

TearFlagValue | BitFlags<TearFlagValue>

void


logUseFlags(this, useFlags): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:602

Helper function for printing out every use flag that is turned on. Useful when debugging.

void

UseFlagValue | BitFlags<UseFlagValue>

void


logUserdata(this, userdata): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:613

Helper function to enumerate all of the properties of a “userdata” object (i.e. an object from the Isaac API).

void

unknown

void


logVector(this, vector, name?, round?): void

Defined in: packages/isaacscript-common/src/functions/logMisc.ts:643

Helper function to log a Vector object.

void

Vector

The Vector object to log.

string

Optional. The name of the object, which will be logged before the properties.

boolean = false

Optional. If true, will round the vector values to the nearest integer. Default is false.

void