Change output to stdout
This commit is contained in:
@@ -60,15 +60,14 @@ static const char *LEVEL_COLORS[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void bzLoggerStdOutCallback(BzLoggerEvent *ev) {
|
static void bzLoggerStdOutCallback(BzLoggerEvent *ev) {
|
||||||
fprintf(stderr, "%s %s%-5s\x1b[0m ",ev->time,
|
fprintf(stdout, "%s %s%-5s\x1b[0m ",ev->time,
|
||||||
LEVEL_COLORS[ev->level], LEVEL_STRINGS[ev->level]);
|
LEVEL_COLORS[ev->level], LEVEL_STRINGS[ev->level]);
|
||||||
if (ev->file) {
|
if (ev->file) {
|
||||||
fprintf(stderr, "\x1b[90m(%s:%d)\x1b[0m ",
|
fprintf(stdout, "\x1b[90m(%s:%d)\x1b[0m ",
|
||||||
ev->file, ev->line);
|
ev->file, ev->line);
|
||||||
}
|
}
|
||||||
vfprintf(stderr, ev->fmt, ev->va);
|
vfprintf(stdout, ev->fmt, ev->va);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stdout, "\n");
|
||||||
fflush(stderr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bzLoggerFileCallback(BzLoggerEvent *ev) {
|
static void bzLoggerFileCallback(BzLoggerEvent *ev) {
|
||||||
|
|||||||
Reference in New Issue
Block a user