Server_log.txt

Started by MEGAMIND, Oct 16, 2020, 08:50 PM

Previous topic - Next topic

MEGAMIND

Ive noticed alot that server_log.txt only gets filled up when pressed ctrl+c other then this if u close it via close button or x button the logs arent created why?

DizzasTeR

Because the logs aren't flushed until CTRL + C is pressed which is the command to "Close the server normally"

The close button terminates it without actually signaling it to clean everything up so it doesn't flush to the file the log contents.

Thats what I think happens.

MEGAMIND

#2
Quote from: DizzasTeR on Oct 17, 2020, 09:38 AMBecause the logs aren't flushed until CTRL + C is pressed which is the command to "Close the server normally"

The close button terminates it without actually signaling it to clean everything up so it doesn't flush to the file the log contents.

Thats what I think happens.
Your exactly right, i tried using a batch script to taskkill /im server.exe which terminates it directly, isnt there any other method to send somekeys like ctrl+c to close it gracefully and fetch the logs

habi

does ShutdownServer() works?

MEGAMIND

#4
Quote from: habi on Oct 17, 2020, 01:53 PMdoes ShutdownServer() works?
yes but didint exported any logs out, btw i wanna try it out with a batch script or php of possible