docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

Show date, not just time in docker logs

Open rwjack opened this issue 3 weeks ago • 3 comments

Enhancement Type

Improve an existing feature

Describe the enhancement

Hi, it's very confusing correlating what happened when, in the docker logs, considering they only show the time. Can you add a date as well?

rwjack avatar Dec 07 '25 11:12 rwjack

The image doesn't manage the log format. The Minecraft server itself provides its own log4j config.

You can always get fully qualified timestamps from docker by adding --timestamps

https://docs.docker.com/reference/cli/docker/container/logs/

itzg avatar Dec 07 '25 13:12 itzg

I spoke too soon. When enabling rolling log files it does use https://github.com/itzg/docker-minecraft-server/blob/master/files/log4j2.xml. I can adjust the format there.

itzg avatar Dec 07 '25 13:12 itzg

@itzg are you okay with me taking this as first issue? I would love to contribute to this project.

tekikaito avatar Dec 10 '25 20:12 tekikaito