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:
parent
f04d1ae032
commit
4785662587
5 changed files with 68 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -33,12 +33,15 @@
|
|||
#ifndef JOURNAL_H
|
||||
#define JOURNAL_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
int journal_startup(void);
|
||||
void journal_shutdown(void);
|
||||
int journal_reopen(void);
|
||||
void journal_login(void);
|
||||
void journal_logout(void);
|
||||
void journal_prng(unsigned);
|
||||
void journal_output(struct player *, int, char *);
|
||||
void journal_input(char *);
|
||||
void journal_command(char *);
|
||||
void journal_update(int);
|
||||
|
|
|
@ -48,6 +48,7 @@ struct nchrstr;
|
|||
struct nstr_item;
|
||||
struct nstr_sect;
|
||||
struct nukstr;
|
||||
struct player;
|
||||
struct plist;
|
||||
struct plnstr;
|
||||
struct range;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue