New journal event "output"

Redundant information, but incredibly useful when you want to figure
out what happened without a (still nonexistent) journal replay tool.
The redundancy could help making a journal replay tool more robust.

To enable, set econfig key keep_journal to at least 2.  Output events
are *not* flushed to disk immediately.
This commit is contained in:
Markus Armbruster 2011-04-04 08:09:25 +02:00
parent f04d1ae032
commit 4785662587
5 changed files with 68 additions and 4 deletions

View file

@ -89,6 +89,9 @@ EMPCFBOTH("port", loginport, char *, NSC_STRING, KM_INTERNAL,
"TCP port the server will bind")
EMPCFBOTH("keep_journal", keep_journal, int, NSC_INT, KM_INTERNAL,
"Enable journal log file")
EMPCF_COMMENT("# 0 - Disabled\n"
"# 1 - Enabled, player output suppressed\n"
"# 2 - Enabled, log everything (big; rotating & compressing advised)\n")
EMPCFBOTH("post_crash_dump_hook", post_crash_dump_hook, char *, NSC_STRING, KM_INTERNAL,
"Shell command run right after a crash dump, in the game's data directory")
EMPCFBOTH("privname", privname, char *, NSC_STRING, 0,