Page 1 of 1

LogFlush

Posted: 22 Mar 2015, 08:42
by gajop
What happened to it?
It seems that we only have LogFlushLevel according to the wiki and --list-config-vars:

Code: Select all

spring --list-config-vars | grep LogFlush
  "LogFlushLevel": {
    "description": "Flush the logfile when level of message is above LogFlushLevel. i.e. ERROR is flushed as default, WARNING isn't.",
LogFlush is still mentioned at some places: https://springrts.com/wiki/Infolog.txt# ... logfile.3F and I'm not sure if it's still used.
If not, how to achieve the same functionality?

Re: LogFlush

Posted: 22 Mar 2015, 15:24
by 8611
Did not test but think new LogFlushLevel=0 is like old LogFlush=1 because

https://github.com/spring/spring/commit ... 1d4df385b6
remove LogFlush, introduce LogFlushLevel:
when a log-message with level >= LogFlushLevel is logged,
logfile is flushed, else not,
see rts/System/Log/Level.h for int values
https://github.com/spring/spring/blob/d ... evel.h#L15
#define LOG_LEVEL_ALL 0

Re: LogFlush

Posted: 22 Mar 2015, 15:29
by abma
edit:

as 8611 wrote

Re: LogFlush

Posted: 22 Mar 2015, 16:50
by gajop
8611 wrote:Did not test but think new LogFlushLevel=0 is like old LogFlush=1 because
Thanks, updated wiki.