How is server log files working with Kratos? If se...
# talk-kratos
a
How is server log files working with Kratos? If server is shutdown and restarted, will logs be persisted?
f
Hi Jonny - Logs will always be sent to stdout and stderr, so you need to pipe them into a log file. Shutdown / restart shouldn't cause issues, assuming you append to rather than overwrite your log files.
a
OK thanks, I'm just wondering where to actually put the pipe command. The command is straight from the docker-compose command, from quickstart.yml, I just added the part from >> to the end
Copy code
serve -c /etc/config/kratos/kratos.yml --dev --watch-courier >> /somedirectory/file.log 2>&1
f
This looks right to me - any issues with this command?
a
Yes it's never writing anything to the fiel