|
206 | 206 | </Filters> |
207 | 207 | </Logger> |
208 | 208 |
|
| 209 | + <Logger name="org.hiero" level="INFO" additivity="false"> |
| 210 | + <AppenderRef ref="fileLog"> |
| 211 | + <Filters> |
| 212 | + <!-- MerkleDb & Virtual Merkle --> |
| 213 | + <MarkerFilter marker="MERKLE_DB" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 214 | + <MarkerFilter marker="VIRTUAL_MERKLE_STATS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 215 | + <MarkerFilter marker="STATE_HASH" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 216 | + </Filters> |
| 217 | + </AppenderRef> |
| 218 | + |
| 219 | + <AppenderRef ref="vMapLog"> |
| 220 | + <Filters> |
| 221 | + <!-- MerkleDb & Virtual Merkle --> |
| 222 | + <MarkerFilter marker="MERKLE_DB" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 223 | + <MarkerFilter marker="VIRTUAL_MERKLE_STATS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 224 | + <MarkerFilter marker="DISABLED" onMatch="DENY" onMismatch="DENY" /> |
| 225 | + </Filters> |
| 226 | + </AppenderRef> |
| 227 | + |
| 228 | + <AppenderRef ref="swirldsHashStream"> |
| 229 | + <Filters> |
| 230 | + <!-- Hash stream log --> |
| 231 | + <MarkerFilter marker="STATE_HASH" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 232 | + <MarkerFilter marker="DISABLED" onMatch="DENY" onMismatch="DENY" /> |
| 233 | + </Filters> |
| 234 | + </AppenderRef> |
| 235 | + |
| 236 | + <!-- |
| 237 | + Due to known log4j2 issues with how Markers and LogLevels are evaluated there must be a top level <Filter> element |
| 238 | + to ensure that the root logger does not execute all the lambda arguments erroneously. Potential work around in the |
| 239 | + future is to use a top-level <Filter> and <Logger> specific filters in combination to achieve the desired |
| 240 | + multi-logger setup for diagnostic logging. |
| 241 | + --> |
| 242 | + <Filters> |
| 243 | + <!-- Filter out levels above INFO (ex: DEBUG & TRACE) --> |
| 244 | + <!-- Intentionally left disabled by default --> |
| 245 | + <!-- <ThresholdFilter level="INFO" onMatch="NEUTRAL" onMismatch="DENY" />--> |
| 246 | + |
| 247 | + <!-- In the following, enable a marker with onMatch="ACCEPT" and disable with onMatch="DENY". --> |
| 248 | + <!-- More markers can be added, but ensure that every onMismatch="NEUTRAL", except the last is "DENY". --> |
| 249 | + |
| 250 | + <!-- Exceptions --> |
| 251 | + <MarkerFilter marker="EXCEPTION" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 252 | + <MarkerFilter marker="TESTING_EXCEPTIONS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 253 | + <MarkerFilter marker="SOCKET_EXCEPTIONS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 254 | + <MarkerFilter marker="TCP_CONNECT_EXCEPTIONS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 255 | + |
| 256 | + <!-- Errors --> |
| 257 | + <MarkerFilter marker="INVALID_EVENT_ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 258 | + |
| 259 | + <!-- Synchronization/Gossip (Debug) --> |
| 260 | + <MarkerFilter marker="SYNC_START" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 261 | + <MarkerFilter marker="SYNC_DONE" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 262 | + <MarkerFilter marker="SYNC_ERROR" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 263 | + <MarkerFilter marker="SYNC" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 264 | + <MarkerFilter marker="HEARTBEAT" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 265 | + |
| 266 | + <!-- Platform Events (Debug) --> |
| 267 | + <MarkerFilter marker="CREATE_EVENT" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 268 | + <MarkerFilter marker="INTAKE_EVENT" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 269 | + <MarkerFilter marker="WATCH_EVENTS_SEND_REC" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 270 | + <MarkerFilter marker="EVENT_SIG" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 271 | + <MarkerFilter marker="EVENT_STREAM" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 272 | + <MarkerFilter marker="EVENT_RESTART" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 273 | + <MarkerFilter marker="STALE_EVENTS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 274 | + <MarkerFilter marker="EVENT_PARSER" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 275 | + <MarkerFilter marker="EVENT_CONTENT" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 276 | + |
| 277 | + <!-- Queues/Certificates/Utilities --> |
| 278 | + <MarkerFilter marker="QUEUES" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 279 | + <MarkerFilter marker="CERTIFICATES" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 280 | + <MarkerFilter marker="LOCKS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 281 | + <MarkerFilter marker="TIME_MEASURE" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 282 | + <MarkerFilter marker="THREADS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 283 | + |
| 284 | + <!-- Signed State Signatures --> |
| 285 | + <MarkerFilter marker="STATE_SIG_DIST" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 286 | + <MarkerFilter marker="STATE_DELETER" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 287 | + <MarkerFilter marker="OBJECT_STREAM_DETAIL" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 288 | + |
| 289 | + <!-- Cryptography --> |
| 290 | + <MarkerFilter marker="OPENCL_INIT_EXCEPTIONS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 291 | + <MarkerFilter marker="ADV_CRYPTO_SYSTEM" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 292 | + |
| 293 | + <!-- Startup/Restart/Reconnect --> |
| 294 | + <MarkerFilter marker="STARTUP" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 295 | + <MarkerFilter marker="PLATFORM_STATUS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 296 | + <MarkerFilter marker="RECONNECT" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 297 | + <MarkerFilter marker="FREEZE" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 298 | + |
| 299 | + <!-- Saved States --> |
| 300 | + <MarkerFilter marker="SNAPSHOT_MANAGER" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 301 | + <MarkerFilter marker="STATE_TO_DISK" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 302 | + <MarkerFilter marker="STATE_HASH" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 303 | + |
| 304 | + <!-- Beta Mirror --> |
| 305 | + <MarkerFilter marker="BETA_MIRROR_NODE" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 306 | + |
| 307 | + <!-- Merkle Trees & Hashing --> |
| 308 | + <MarkerFilter marker="MERKLE_FORCE_FLUSH" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 309 | + <MarkerFilter marker="MERKLE_HASHING" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 310 | + <MarkerFilter marker="MERKLE_GENERATION" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 311 | + <MarkerFilter marker="MERKLE_LOCKS" onMatch="DENY" onMismatch="NEUTRAL"/> |
| 312 | + |
| 313 | + <!-- MerkleDb & Virtual Merkle --> |
| 314 | + <MarkerFilter marker="MERKLE_DB" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 315 | + <MarkerFilter marker="VIRTUAL_MERKLE_STATS" onMatch="ACCEPT" onMismatch="NEUTRAL"/> |
| 316 | + |
| 317 | + <MarkerFilter marker="DISABLED" onMatch="DENY" onMismatch="DENY" /> |
| 318 | + </Filters> |
| 319 | + </Logger> |
| 320 | + |
209 | 321 | <!-- Send transaction state logs to their own appender --> |
210 | 322 | <Logger name="com.hedera.node.app.state.logging.TransactionStateLogger" level="info" additivity="false"> |
211 | 323 | <AppenderRef ref="TransactionStateLogs"/> |
|
0 commit comments