fix log windows bug; remove unneeded third party files
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "script.h"
|
||||
|
||||
int logLevel = 1;
|
||||
int logLevel = 0;
|
||||
|
||||
/* Four levels of log:
|
||||
0 info
|
||||
@@ -46,6 +46,7 @@ void mYughLog(int category, int priority, int line, const char *file, const char
|
||||
vsnprintf(msgbuffer, ERROR_BUFFER, message, args);
|
||||
va_end(args);
|
||||
|
||||
|
||||
char buffer[ERROR_BUFFER] = { '\0' };
|
||||
snprintf(buffer, ERROR_BUFFER, "%s:%d: %s, %s: %s\n", file, line, logstr[priority], catstr[category], msgbuffer);
|
||||
|
||||
@@ -85,3 +86,7 @@ void log_cat(FILE *f) {
|
||||
YughInfo(out);
|
||||
}
|
||||
}
|
||||
|
||||
void sg_logging(const char *tag, uint32_t lvl, uint32_t id, const char *msg, uint32_t line, const char *file, void *data) {
|
||||
mYughLog(lvl, 1, line, file, "tag: %d, msg: %s", tag, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user