Help with docker-compose.yaml file for player logging #316
-
Hello. firstly thank you very much for the work on this server. It was exactly what I wanted and I absolutely love it. I am trying to setup player logging to a file and eventually I will also add a player announcement to a discord web hook. I am a little new to docker-compose and to this server management so I suspect this is a simple syntax or simple concept problem. Apologies in advance for naivete. in my docker-compose.yaml I have :
the problem I have is the - ON_VALHEIM_LOG_FILTER_CONTAINS_Spawned=cat >> /tmp/player_login_history does not work. the file is always empty. It shows up in the valheim-server/stderr log as:
so I can see it is firing. but still nothing is written. Can someone help me understand how to correctly phrase this syntax or help me understand what I am doing wrong? I suspect I am merely sending the cat command as a string. I have changed the permissions of the file to be writable by any account. Any other insight? Please and thank you for the help. It's appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you maybe accidentally trying to read the file on your host system instead of inside the container? I just tried to debug your setup copy'pasting your config above but all seems to work fine. Config
Docker console
Inside container
|
Beta Was this translation helpful? Give feedback.
Are you maybe accidentally trying to read the file on your host system instead of inside the container?
I just tried to debug your setup copy'pasting your config above but all seems to work fine.
Config