Repository: deepjavalibrary/djl
Pull request #3667 (2025-04-11 23:50:23)

remove status from log4j configuration of status logger
## Description ##

`status` configuration in log4j is deprecated as of 2.24.x https://logging.apache.org/log4j/2.x/manual/configuration.html#configuration-attribute-status

- If this change is a backward incompatible change, why must this change be made?
- Interesting edge cases to note here


codecov-commenter: :warning: Please install the !['codecov app svg image'](https://github.com/codecov/engineering-team/assets/152432831/e90313f4-9d3a-4b63-8b54-cfe14e7ec20d) to ensure uploads and comments are reliably processed by Codecov.

## [Codecov](https://app.codecov.io/gh/deepjavalibrary/djl/pull/3667?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 62.41%. Comparing base [(`8aae174`)](https://app.codecov.io/gh/deepjavalibrary/djl/commit/8aae1746b394a8f3a94ee787ad69b8b3d4cc65de?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary) to head [(`c7dc50f`)](https://app.codecov.io/gh/deepjavalibrary/djl/commit/c7dc50fc4724d9ba7f0aa8305859c6e125e5452c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary).
> Report is 19 commits behind head on master.

:exclamation: Your organization needs to install the [Codecov GitHub app](https://github.com/apps/codecov/installations/select_target) to enable full functionality.

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff              @@
##             master    #3667      +/-   ##
============================================
+ Coverage     62.05%   62.41%   +0.35%     
- Complexity     6235     6314      +79     
============================================
  Files           685      694       +9     
  Lines         33508    33970     +462     
  Branches       3572     3627      +55     
============================================
+ Hits          20795    21201     +406     
- Misses        11129    11161      +32     
- Partials       1584     1608      +24     
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/deepjavalibrary/djl/pull/3667?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary).

<details><summary> :rocket: New features to boost your workflow: </summary>

- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>

Patch:
diff --git a/engines/mxnet/jnarator/src/main/resources/log4j2.xml b/engines/mxnet/jnarator/src/main/resources/log4j2.xml
index f6c58f5e1..1d8dd55f2 100644
--- a/engines/mxnet/jnarator/src/main/resources/log4j2.xml
+++ b/engines/mxnet/jnarator/src/main/resources/log4j2.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
+<Configuration>
   <Appenders>
     <Console name="Console" target="SYSTEM_OUT">
       <PatternLayout pattern="[%highlight{%-5level}] %msg%n%throwable"/>
diff --git a/examples/src/main/resources/log4j2.xml b/examples/src/main/resources/log4j2.xml
index acc4871e4..4c28a6e41 100644
--- a/examples/src/main/resources/log4j2.xml
+++ b/examples/src/main/resources/log4j2.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
+<Configuration>
   <Appenders>
     <Console name="console" target="SYSTEM_OUT">
       <PatternLayout
diff --git a/integration/src/main/resources/log4j2.xml b/integration/src/main/resources/log4j2.xml
index a4fad32c7..3dde7524f 100644
--- a/integration/src/main/resources/log4j2.xml
+++ b/integration/src/main/resources/log4j2.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
+<Configuration>
   <Appenders>
     <Console name="console" target="SYSTEM_OUT">
       <PatternLayout


Test patch:
diff --git a/extensions/aws-ai/src/test/resources/log4j2.xml b/extensions/aws-ai/src/test/resources/log4j2.xml
index 9a7074ef2..2ce2ae67b 100644
--- a/extensions/aws-ai/src/test/resources/log4j2.xml
+++ b/extensions/aws-ai/src/test/resources/log4j2.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
+<Configuration>
     <Appenders>
         <Console name="console" target="SYSTEM_OUT">
             <PatternLayout