LogFlush

LogFlush

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

LogFlush

Post 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?
8611
XTA Developer
Posts: 242
Joined: 29 Dec 2014, 08:22

Re: LogFlush

Post 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
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: LogFlush

Post by abma »

edit:

as 8611 wrote
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: LogFlush

Post by gajop »

8611 wrote:Did not test but think new LogFlushLevel=0 is like old LogFlush=1 because
Thanks, updated wiki.
Post Reply

Return to “General Discussion”