Skip to main content

Module logging

Module logging 

Source
Expand description

Node kinds that conceptually belong to the logging category.

This module is intentionally not wired into category_for_node_kind. The node kinds listed below overlap with data_access (call_expression, call) and resource_management (macro_invocation) at the AST level — only the callee name distinguishes a logging invocation from a data-access or resource-management one. Native classification by node kind alone would either steal hits from those existing categories or duplicate-classify every call/macro.

Foreign extractors (e.g. the Meridian consumer app) MUST apply callee-text filtering on their side before emitting PatternInstanceInput values with category = "logging". As of M32, matches_callee provides the canonical regex tables — embedders should prefer it over hand-rolled filters.

Constants§

NODE_KINDS
Conceptual tree-sitter node kinds for logging patterns. Reference only — not consulted by category_for_node_kind.

Functions§

matches_callee
Return true when text looks like a logging callee for language.