Log (NUMBER)
Log any number, int or float, without caring which it is
- NUMBER
ComfyUI likes to split numbers into INT and FLOAT, but a lot of workflows hand you a plain NUMBER - the union type that accepts either - and you just want to see what it is. Log (NUMBER) (LogNumber) prints it to the console and passes it through. If the RF Nodes Log family has a "don't make me think about types" member, this is it: one node that logs whatever number arrives, integer or not.
How it works
Identical to the pack's other Log nodes: LogToConsole(prefix, value) writes a cyan line to the terminal running ComfyUI, and the node returns the value unchanged. The passthrough means you can drop it inline on a wire without changing the graph's behavior.
The only real difference from LogFloat and LogInt is the input type. This node accepts NUMBER - the broader, accepts-either type - so it's the one to grab when the source node doesn't commit to INT or FLOAT, or when you're logging a value whose type you're not sure about.
The inputs that matter
- value - a NUMBER (int or float),
forceInput, so it must be wired. - prefix - the label before the value (default
Value:). Name it after what you're measuring.
Output: NUMBER - the same value, unchanged.
When you'd use it
Anywhere a number is computed by a node that returns the generic NUMBER type. And there's a practical bonus to the union type: if you're not sure whether some upstream output is an INT or a FLOAT, this node accepts either, so you can log it without the "wrong socket" connection error. That alone has saved me a few frustrating minutes.
Installing RF Nodes
No dependencies, no models. Via ComfyUI Manager search "RF Nodes", or:
cd ComfyUI/custom_nodes
git clone https://github.com/foxtrot-roger/comfyui-rf-nodes
Restart ComfyUI; it's under RF in the menu.
Common issues
- "It's basically LogFloat/LogInt." - Close. Those are typed to a specific input; this one accepts both. For observing a generic NUMBER output, it's the right tool.
- "Logs are invisible." - Console, not browser. Run ComfyUI from a terminal if you want to see the output.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| value | NUMBER | — | |
| prefixopt | STRING | Value: | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| NUMBER | NUMBER | — |