all new logging: optional file log for linux; choose independent logging levels; optional timestamps for console & file logs; cleanup time functions
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4449 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -95,7 +95,8 @@ void conoutf(const char *s, ...)
|
||||
s_sprintfdv(sf, s);
|
||||
string sp;
|
||||
filtertext(sp, sf, 2);
|
||||
puts(sp);
|
||||
extern struct servercommandline scl;
|
||||
printf("%s%s\n", scl.logtimestamp ? timestring(true, "%b %d %H:%M:%S ") : "", sp);
|
||||
con.addline(sf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user