Skip to content

Commit ca4e85a

Browse files
committed
chore: rename logging configs with component prefixes (log4j2-core).
1 parent 1b408ed commit ca4e85a

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

docs/monitoring/LOGGING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The Private Blockchain project uses **SLF4J with Log4j2** for professional loggi
1616
## 📁 Configuration Files
1717

1818
### Active Configurations
19-
- `log4j2.xml` - Development configuration (default)
20-
- `log4j2-production.xml` - Production configuration
19+
- `log4j2-core.xml` - Development configuration (default)
20+
- `log4j2-core-production.xml` - Production configuration
2121
- `log4j2-test.xml` - Test configuration (automatic during tests)
2222

2323
### Log Files Generated
@@ -36,7 +36,7 @@ mvn exec:java -Dexec.mainClass="demo.BlockchainDemo" -Pdevelopment
3636
./scripts/run-development.zsh
3737
```
3838

39-
**Configuration**: `log4j2.xml` (automatic)
39+
**Configuration**: `log4j2-core.xml` (automatic)
4040
- **Application logs**: DEBUG level
4141
- **Framework logs**: INFO level
4242
- **Console output**: Enabled with thread names
@@ -50,7 +50,7 @@ mvn exec:java -Dexec.mainClass="demo.BlockchainDemo" -Pproduction
5050
./scripts/run-production.zsh
5151
```
5252

53-
**Configuration**: `log4j2-production.xml` (automatic)
53+
**Configuration**: `log4j2-core-production.xml` (automatic)
5454
- **Application logs**: WARN level only
5555
- **Framework logs**: ERROR level only
5656
- **Console output**: Errors only to STDERR
@@ -108,13 +108,13 @@ secLogger.warn(securityEvent);
108108
<profile>
109109
<id>development</id>
110110
<properties>
111-
<log4j2.configurationFile>log4j2.xml</log4j2.configurationFile>
111+
<log4j2.configurationFile>log4j2-core.xml</log4j2.configurationFile>
112112
</properties>
113113
</profile>
114114
<profile>
115115
<id>production</id>
116116
<properties>
117-
<log4j2.configurationFile>log4j2-production.xml</log4j2.configurationFile>
117+
<log4j2.configurationFile>log4j2-core-production.xml</log4j2.configurationFile>
118118
</properties>
119119
</profile>
120120
</profiles>

docs/monitoring/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Performance metrics, logging, and indexing coordination guides.
1919
- Cache hit rate analysis
2020

2121
### Logging Levels
22-
- **Development**: Verbose (log4j2.xml)
23-
- **Production**: Minimal (log4j2-production.xml)
22+
- **Development**: Verbose (log4j2-core.xml)
23+
- **Production**: Minimal (log4j2-core-production.xml)
2424
- **Testing**: Optimized for test output
2525

2626
### Indexing Coordination

docs/recovery/OFFCHAIN_INTEGRITY_REPORT_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ report.addCheckResult(newResult);
272272

273273
#### Step 3: Enable Comprehensive Logging
274274
```xml
275-
<!-- Add to logback.xml or log4j2.xml -->
275+
<!-- Add to log4j2-core.xml (development) or log4j2-core-production.xml (production) -->
276276
<logger name="com.rbatllet.blockchain.service.OffChainIntegrityReport" level="INFO"/>
277277
```
278278

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@
325325
<activeByDefault>true</activeByDefault>
326326
</activation>
327327
<properties>
328-
<log4j2.configurationFile>log4j2.xml</log4j2.configurationFile>
328+
<log4j2.configurationFile>log4j2-core.xml</log4j2.configurationFile>
329329
</properties>
330330
</profile>
331331

332332
<!-- Production profile - minimal logging -->
333333
<profile>
334334
<id>production</id>
335335
<properties>
336-
<log4j2.configurationFile>log4j2-production.xml</log4j2.configurationFile>
336+
<log4j2.configurationFile>log4j2-core-production.xml</log4j2.configurationFile>
337337
</properties>
338338
</profile>
339339
</profiles>
File renamed without changes.

0 commit comments

Comments
 (0)