Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

Crytex

How to turn-off a rewrite of log.txt?

Recommended Posts

Crytex    0

Hello

I am starting a Dedicated Server in off-line mode. 

In ...\Documents\Klei\DoNotStarveTogether server creating a file log.txt

Server working 2 days and that file become having size 650kb

Then i am restarting server and that file fully rewriting and his new size now 31kb

And how a result i am loosing all log data.

 

Any chances turn-off rewrite of log.txt via command line or any others ways?

 

Ill trying add in command line that

-logFile "C:\Klei\DoNotStarveTogether\1.txt"

-log "C:\Klei\DoNotStarveTogether\1.txt"

But that don't work...

 

Be great have a possibility:

1. After server start he creating a new file with a unique or special file name.

2. After server restarting he still adding all data in old log.txt file.

 

Main goal - don't loosing log data.

 

Thank you.

 

Share this post


Link to post
Share on other sites
MarkL    536

Hey Crytex,

 

We used "svlogd" on Linux to achieve this on our servers.
 

It would be possible for us to add a command line to append to logs, if there is nothing equivalent available for Windows?

 

 

Share this post


Link to post
Share on other sites
Crytex    0

Hm... i don't know about command like on linux for saving logs... ill try find some info about it.

But i think windows have nothing like that :)

Share this post


Link to post
Share on other sites
nome    4,338

MarkL Does windows have something like signals? A common paradigm in the linux world is to rotate logs upon receipt of a SIGHUP.

Share this post


Link to post
Share on other sites
Kzisor    1,058

@nome, I don't believe that windows has such a feature. Windows has Event Logs, but that isn't equivalent to what MarkL was talking about. I've searched and searched the internet to see if I could find something equivalent, but haven't found anything thus far on Windows.

Share this post


Link to post
Share on other sites
Crytex    0

MarkL i am also cant find anything usefull for achieve logs on wondows.

Maybe if that not a very hard you can add command for achieve logs on windows systems? We all windows users be very happy :)

Share this post


Link to post
Share on other sites