8.1. Default configuration
By default DynFi® Manager tries store its logs in
/var/log/dynfi directory. This directory must exists and be writable by
the user running DynFi Manager.
If this directory is missing or not writable (which should not be the case after installing from DEB/APT), DynFi Manager tries to send all logs to standard output (“console”).
DynFi Manager will rotate logs every day and keep logs for last 60 days or 3GB of logs (whichever comes first).
8.2. Tuning logs
8.2.1. Changing log directory
In order to write logs to directory other than
/var/log/dynfi, specify the directory with
-DLOG_DIR=/another/fancy/directory when running DynFi Manager. E.g.:
java -DLOG_DIR=/another/fancy/directory -jar /path/to/dynfi.jar
8.2.2. Skipping logs written to disk
In order not to write any logs to disk, specify that with
-DLOG_SKIPFILE when running DynFi Manager. E.g.:
java -DLOG_SKIPFILE -jar /path/to/dynfi.jar
8.2.3. Sending logs to standard output
In order to send logs to standard output (“print in console”), add parameter
-DLOG_STDOUT when running DynFi Manager. E.g.:
java -DLOG_STDOUT -jar /path/to/dynfi.jar
8.2.4. Changing log level
In order to change global (i.e. of all statements) logging level, add parameter
-DLOG_LEVEL=LEVEL when running DynFi Manager.
For level use
java -DLOG_LEVEL=ERROR -jar /path/to/dynfi.jar
8.3. Tuning logs in Ubuntu
Tuning logs in Ubuntu (with DynFi Manager installed from DEB file or APT repository) can be done easily using:
sudo systemctl edit dynfi.service
This will open text editor of choice. In case only ERROR logs are needed, the content of the file might look like this:
Make sure not to skip
[SERVICE] line on top.