Request for server log option?

Arrange meetings with other people to play MP, announce your servers.
studmuffin
Inserter
Inserter
Posts: 44
Joined: Fri Apr 01, 2016 4:41 pm
Contact:

Request for server log option?

Post by studmuffin »

Unsure if this is the best place to submit a request inquery... But I really am curious if a log output option could be added to the server functionality? I'm having the most difficult time trying to get windows cmd to output the server cli into a log file... A built in functionality ( -log_file=log.txt -log_size=5mb) for the server cli to write it's output to a log file. The main purpose I want this for is to experiment creating paid hosting services for factorio. I can automate creating new servers, generating new maps, restarting servers. What I can't figure out is getting the log file, for the main purpose of allowing a server subscriber to whitelist/blacklist ips. whitelisting/blacklisting by steamid would be preferred... but factorio doens't yet use steam id in it's multiplayer connections. Only seems to verify the currently logged in steam user on a machine has actually paid for the game. Once it's running, it doesn't appear any more calls to or from steam are made.

TL;DR

I can has -log_file and -log_size functionality built into server config?
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Request for server log option?

Post by daniel34 »

Factorio already writes the log to the factorio-current.log and factorio-previous.log files in the appdata/write-data directory (configured in config.ini). This is the same folder where your mods and saves are stored.

If you want the game to log to a different file you can use the > operator to pipe the contents of the commandline window to a file.
quick links: log file | graphical issues | wiki
studmuffin
Inserter
Inserter
Posts: 44
Joined: Fri Apr 01, 2016 4:41 pm
Contact:

Re: Request for server log option?

Post by studmuffin »

What?! ok I'm gonna have to check this and assess again. Thank you sir. I had no idea.

The piping to a different file is what I've been trying to do, but haven't been able to work successfully. Not in a windows environment anyway. I have not tested linux, which I'm positive could do it. I've just already got my windows server setup and ready for this kind of thing.
Post Reply

Return to “Multiplayer”