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:
ac_stef
2009-05-29 16:30:55 +00:00
parent 4003f387c7
commit 374507babf
11 changed files with 263 additions and 349 deletions
+2 -1
View File
@@ -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);
}