WIP: Rework logging #48

Draft
Levitating wants to merge 2 commits from Levitating/Cytoplasm:log into master
Showing only changes of commit ba450ee766 - Show all commits

View file

@ -26,7 +26,6 @@
#include <Memory.h>
#include <Util.h>
#include <cstdarg>
#include <string.h>
Levitating marked this conversation as resolved Outdated
Outdated
Review

I think you meant stdarg.h, as those kind of includes are C++isms.

I think you meant stdarg.h, as those kind of includes are C++isms.

It was most likely automatically added by my IDE by accident.

It was most likely automatically added by my IDE by accident.
#include <time.h>
#include <unistd.h>
@ -222,7 +221,7 @@ LogConfigUnindent(LogConfig * config)
}
}
void
static void
LogPrint(Stream * stream, LogConfig * config, int level, const char *msg, va_list argp)
Levitating marked this conversation as resolved Outdated
Outdated
Review

I'd probably consider making LogPrint static here, as it's not even part of the public includes.

I'd probably consider making LogPrint static here, as it's not even part of the public includes.

Yes it should be static!

Yes it should be static!
{
size_t i;