API ReferenceGE Extensionsflowgraphnodesdebug
Log
- **File:** `extensions/flowgraph/nodes/debug/log.lua`
Overview
- File:
extensions/flowgraph/nodes/debug/log.lua - Name:
Log - Category:
dynamic_instant - Description: Logs the input value to the console. LogType can be I (Info), D (Debug), W (Warning), or E (Error).
Pin Schema
Input Pins
| Name | Type | Description |
|---|---|---|
value | any | Value that should be logged. Default: "". Hardcoded, default type string. |
logTag | string | Tag to identify the log entry. Default: "Node #" + node id. |
logType | string | Log level: I (Info), D (Debug), W (Warning), or E (Error). Default: "I". Hardcoded. |
Output Pins
None.
Behavior
- workOnce(): Creates a log entry immediately on first trigger.
- work(): If
dynamicMode == 'repeat', creates a log entry every frame. - createLogEntry(): Converts the value to string (uses
dumps()for tables), callslog()with the configured log type and tag, and fires a manager log event.
Node Display
- Shows the current
logTypeandlogTagin the middle of the node:('I','Node #5',...).
Notes
logTagandlogTypepins are hidden by default in the editor.logTypeprovides a dropdown with Info, Debug, Warning, and Error options.- Uses
dumps()for table serialization in log output.
Tags
#flowgraph #node #ge #debug #log
Additional Exports
postInit()
drawMiddle(builder, style)
-
builder -
any -
style -
any -
name-string- (see source) -
description-string- (see source) -
color-any- (see source) -
icon-any- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide