Skip to content

Commit

Permalink
more infos about log4j2 file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetanbrl committed Oct 10, 2024
1 parent 48fccb3 commit 43e259c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs-manager-back/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,15 @@ StandardError=append:/etc/georchestra/logs/service-docsmanager.log

This file will be create by the `systemd` user (`root` by default).

### Application log with Log4j3
### Application log with Log4j2

Application logs will be managed by a `log4j2.xml` file specified in the `application.properties` file :

`logging.config=/etc/georchestra/docs-manager/log4j2.xml`

The user set in docsmanager.service will be use as log file owner.
You can copy / reuse the default `log4j2.xml` file (`/docs-manager-back/src/main/resources`) to `/etc/georchestra/docs-manager`.

Note that the user set in `docsmanager.service` will be use as log file owner.
Be aware to match corrects users between targeted `/log` directory and docsmanager service.

By default, `log4j2.xml` plan to create 1 log file by day.
Expand Down

0 comments on commit 43e259c

Please sign in to comment.