mojira.dev
MC-53994

latest.log file does not write until opened or right-clicked

I'm trying to monitor the latest.log file as it updates. I have tried FileSystemWatcher (.NET C#), Powershell (Get-Content), and other open source projects, all with the same result. I found that latest.log does not update on any of my Windows server environments unless I either right-click the file or open it. I was originally running Java 7, and tried the latest (or last) version of both 6 and 8. I am also running MC server on Ubuntu Linux and do not have this issue there.

Comments 3

Windows issue. Working on Linux with tail -f ./latest.log

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

It is a bug. It is reproducible on multiple systems with different versions of MC server. Programs that do exact what tail do show no change in the contents of the file until the file is touched. Whatever you are using to write the log file is not working correctly.

Saying it works on one platform is not testing that the bug exists. Marking it resolved is not accurate.

I confirmed that 'tail' works. That is not a solution to this issue.

John Palmer

(Unassigned)

Unconfirmed

logging, server

Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w17a

Retrieved