Hi, I wonder if it is possible to add log to file support? To tell the server to log to file you can launch it with -logfile [path to directory], unfortunately the file name is hardcoded to be timestamped. My current solution is having a background script that waits for the file, and tail it to another file with a constant name.
Here's an example that I made yesterday, no setting and such, just getting the log.
https://github.com/gammamonbiscuit/terraria-server-docker-with-logs
My goal is to get the log without relying on docker socket or changing the container's logging driver, and use it for chat forwarding. I think those who want to use fail2ban with terraria would like this feature too.
Thanks~
Hi, I wonder if it is possible to add log to file support? To tell the server to log to file you can launch it with
-logfile [path to directory], unfortunately the file name is hardcoded to be timestamped. My current solution is having a background script that waits for the file, and tail it to another file with a constant name.Here's an example that I made yesterday, no setting and such, just getting the log.
https://github.com/gammamonbiscuit/terraria-server-docker-with-logs
My goal is to get the log without relying on docker socket or changing the container's logging driver, and use it for chat forwarding. I think those who want to use fail2ban with terraria would like this feature too.
Thanks~