Skip to content

Commit

Permalink
fix for log configuration for delete workload (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviTella authored Jun 15, 2023
1 parent a4a8822 commit 873a278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class AzureCosmosClient extends DB {
private static final Marker CREATE_EXCEPTION = MarkerFactory.getMarker("CREATE_EXCEPTION");
private static final Marker READ_EXCEPTION = MarkerFactory.getMarker("READ_EXCEPTION");
private static final Marker PATCH_EXCEPTION = MarkerFactory.getMarker("PATCH_EXCEPTION");
private static final Marker DELETE_EXCEPTION = MarkerFactory.getMarker("DELETE_DIAGNOSTIC");
private static final Marker DELETE_EXCEPTION = MarkerFactory.getMarker("DELETE_EXCEPTION");
private static final Marker QUERY_EXCEPTION = MarkerFactory.getMarker("QUERY_EXCEPTION");


Expand Down
5 changes: 3 additions & 2 deletions azurecosmos/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<MarkerFilter marker="READ_DIAGNOSTIC" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="PATCH_DIAGNOSTIC" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="QUERY_DIAGNOSTIC" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="DELETE_DIAGNOSTIC" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="CREATE_EXCEPTION" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="READ_EXCEPTION" onMatch="DENY" onMismatch="NEUTRAL" />
<MarkerFilter marker="PATCH_EXCEPTION" onMatch="DENY" onMismatch="NEUTRAL" />
Expand Down Expand Up @@ -79,7 +80,7 @@
filePattern="${BASE_PATH_DIAGNOSTICS}/delete/diagnostics.%d{yyyy-MM-dd-hh-mm-ss}.log.gz"
ignoreExceptions="false">
<PatternLayout pattern="${LOG_PATTERN}"/>
<MarkerFilter marker="QUERY_DIAGNOSTIC" onMatch="ACCEPT" onMismatch="DENY" />
<MarkerFilter marker="DELETE_DIAGNOSTIC" onMatch="ACCEPT" onMismatch="DENY" />
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="500MB" />
Expand Down Expand Up @@ -144,7 +145,7 @@
filePattern="${BASE_PATH_EXCEPTION}/delete/exceptions.%d{yyyy-MM-dd-hh-mm-ss}.log.gz"
ignoreExceptions="false">
<PatternLayout pattern="${LOG_PATTERN}"/>
<MarkerFilter marker="QUERY_EXCEPTION" onMatch="ACCEPT" onMismatch="DENY" />
<MarkerFilter marker="DELETE_EXCEPTION" onMatch="ACCEPT" onMismatch="DENY" />
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="500MB" />
Expand Down

0 comments on commit 873a278

Please sign in to comment.