Personal log doesn't work with --background
**Describe the bug**
Personal log doesn't work with --background

**To Reproduce**
```
sudo ./xmrig --algo=rx/0 --url=rx.unmineable.com:3333 --user=$coin:$address.$worker --keepalive --threads=2 --background --log-file=/home/user/my_log.log
```
No logs in "my_log.log
If I delete "--background" the records appear in the terminal and in the "my_log.log"

```
user@mst:~$ ls -l my_log.log
-rwxrwxrwx 1 user user 0 abr  3 09:17 my_log.log
```

**Expected behavior**
That the logs be saved in the custom log `my_log.log` and can use the `--background` option, so that nothing appears in the console

**Required data**
 - XMRig version 6.21.2
 - OS: Ubuntu 22.04
 - CPU Intel Xeon

**Workaround**

replace personal log with `--syslog`

```
sudo ./xmrig --algo=rx/0 --url=rx.unmineable.com:3333 --user=$coin:$address.$worker --keepalive --threads=2 --background --syslog
```