Background
The project convention for logger fields is LOGGER (used in 96+ files), but some older files use log or LOG. Standardizing improves grep-ability and consistency across the codebase.
How
In each file:
- Rename the field:
private static final Logger log to private static final Logger LOGGER
- Replace all usages:
log.info( to LOGGER.info(, log.warn( to LOGGER.warn(, etc.
Tip: IntelliJ's Rename refactoring (Shift+F6 on the field name) handles this safely per file.
Why this is safe
The field is private static final -- file-scoped with zero external references. This is a pure find-and-replace within each file.
Pattern to follow
Any file in src/main/java/ai/labs/eddi/engine/mcp/ uses the LOGGER convention.
Files to update (7 files)
log -> LOGGER (5 files):
src/main/java/ai/labs/eddi/configs/admin/rest/RestOrphanAdmin.java
src/main/java/ai/labs/eddi/configs/agents/rest/RestAgentStore.java
src/main/java/ai/labs/eddi/configs/descriptors/rest/RestDocumentDescriptorStore.java
src/main/java/ai/labs/eddi/configs/properties/rest/RestPropertiesStore.java
src/main/java/ai/labs/eddi/configs/workflows/rest/RestWorkflowStore.java
LOG -> LOGGER (2 files):
src/main/java/ai/labs/eddi/configs/channels/rest/RestChannelIntegrationStore.java
src/main/java/ai/labs/eddi/configs/groups/rest/RestAgentGroupStore.java
Acceptance criteria
Background
The project convention for logger fields is
LOGGER(used in 96+ files), but some older files uselogorLOG. Standardizing improves grep-ability and consistency across the codebase.How
In each file:
private static final Logger logtoprivate static final Logger LOGGERlog.info(toLOGGER.info(,log.warn(toLOGGER.warn(, etc.Why this is safe
The field is
private static final-- file-scoped with zero external references. This is a pure find-and-replace within each file.Pattern to follow
Any file in
src/main/java/ai/labs/eddi/engine/mcp/uses theLOGGERconvention.Files to update (7 files)
log->LOGGER(5 files):src/main/java/ai/labs/eddi/configs/admin/rest/RestOrphanAdmin.javasrc/main/java/ai/labs/eddi/configs/agents/rest/RestAgentStore.javasrc/main/java/ai/labs/eddi/configs/descriptors/rest/RestDocumentDescriptorStore.javasrc/main/java/ai/labs/eddi/configs/properties/rest/RestPropertiesStore.javasrc/main/java/ai/labs/eddi/configs/workflows/rest/RestWorkflowStore.javaLOG->LOGGER(2 files):src/main/java/ai/labs/eddi/configs/channels/rest/RestChannelIntegrationStore.javasrc/main/java/ai/labs/eddi/configs/groups/rest/RestAgentGroupStore.javaAcceptance criteria
LOGGER./mvnw compile&&./mvnw testpass