Hi
I'm trying to add log file in my windows server.
I use this line to start my server : "mxserver --args-file serverargs.txt > log.txt" but nothing is writed in my log.txt
[SERVER] Log file on Windows
-
- Crushed Dissenter
- Posts: 62
- Joined: Fri Aug 03, 2018 6:37 pm
Re: [SERVER] Log file on Windows
You want to redirect stderr, so use 2>log.txt for the redirection.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
-
- Crushed Dissenter
- Posts: 62
- Joined: Fri Aug 03, 2018 6:37 pm
Re: [SERVER] Log file on Windows
It's working but the log.Txt is updated only when I close my server
It's possible to make it in live ?
It's possible to make it in live ?
Re: [SERVER] Log file on Windows
Not sure about that. Windows must be buffering stderr when it's redirected to a file. Stuff like this is the reason why most people use Linux for their servers.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.