DTD Apache Software Foundation · 1.2

Log4j 1.2 configuration

log4j.xml

The log4j.xml configuration of Log4j 1.2 and of Reload4j, its maintained fork.

About

Log4j 1.x reached end of life in 2015, but many applications still ship a log4j.xml, and Reload4j reads the same file.

Good to know

  • Log4j 2 configuration files are a different format and are not checked by this DTD.
  • The example is by xmlvalid.com.

Files

1 file · 6.9 KB

Example document

log4j.xml · 1007 B · valid against this schema

In CI and from code

The same schema by its name, log4j-1.2, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema log4j-1.2
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: log4j-1.2
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=log4j-1.2

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups