-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update config for DataDrivenGenerationConfig audit
- Loading branch information
1 parent
45a1d6f
commit 8da435c
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/* | ||
* SPDX-FileCopyrightText: © 2025 Gregory Higgins <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
package com.fluxtion.compiler; | ||
|
||
import com.fluxtion.runtime.audit.EventLogControlEvent.LogLevel; | ||
|
@@ -24,7 +29,7 @@ public class DataDrivenGenerationConfig { | |
private List<Object> nodes; | ||
private boolean enableAudit; | ||
private boolean printEventToString = false; | ||
private LogLevel auditMethodTraceLogLevel = LogLevel.DEBUG; | ||
private LogLevel traceLogeLevel = LogLevel.NONE; | ||
private FluxtionCompilerConfig compilerConfig;// = new FluxtionCompilerConfig(); | ||
|
||
@SneakyThrows | ||
|
@@ -36,8 +41,12 @@ public RootNodeConfig getRootNodeConfig() { | |
public EventProcessorConfig getEventProcessorConfig() { | ||
EventProcessorConfig eventProcessorConfig = new EventProcessorConfig(); | ||
eventProcessorConfig.setRootNodeConfig(getRootNodeConfig()); | ||
if (enableAudit) | ||
eventProcessorConfig.addEventAudit(auditMethodTraceLogLevel, printEventToString); | ||
if (enableAudit) { | ||
eventProcessorConfig.addEventAudit(); | ||
} | ||
if (traceLogeLevel != LogLevel.NONE) { | ||
eventProcessorConfig.addEventAudit(traceLogeLevel, printEventToString); | ||
} | ||
return eventProcessorConfig; | ||
} | ||
} |