mine-structured-logging
Pro read-only mining codemod. Inventories Backstage LoggerService / Winston usage versus console.* and unstructured string-concat / template logs. Does not modify source.
Metrics
Emits observability_finding and observability_finding_summary.
Shared cardinalities (observability_finding)
| Cardinality | Values / meaning |
|---|---|
category | Always logging |
finding_type | See table below |
severity | info or medium |
automatable | true, false, or partial |
priority_hint | 15–72 |
migration_lane | keep (structured) or replace (console / unstructured) |
rule_id | LOG-001 … LOG-004 |
file, line, symbol, package | Location and enclosing symbol |
observability_finding_summary keeps only category, finding_type, severity, migration_lane.
Rules / finding_type
| Rule | finding_type | What it means |
|---|---|---|
| LOG-001 | logger_service_usage | LoggerService / RootLoggerService / WinstonLogger references |
| LOG-002 | winston_usage | Direct winston imports |
| LOG-003 | console_logging | console.log / info / warn / error / debug |
| LOG-004 | string_concat_log | logger.* calls with + concatenation or unsubstituted-style templates without structured meta |