switched background to white, used dark gray with bold option for info text

This commit is contained in:
Dhanya Maliakal 2016-11-07 10:55:09 +01:00
parent 3a3e2e26d8
commit a17e65c22f
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#define MAGENTA "\x1b[35m"
#define CYAN "\x1b[36m"
#define GRAY "\x1b[37m"
#define DARKGRAY "\x1b[30m"
#define BG_RED "\x1b[41m"
#define BG_GREEN "\x1b[42m"
#define BG_YELLOW "\x1b[43m"

View File

@ -222,7 +222,7 @@ inline void Output2FILE::Output(const std::string& msg, TLogLevel level)
switch(level){
case logERROR: cprintf(RED BOLD,"%s",msg.c_str()); break;
case logWARNING: cprintf(YELLOW BOLD,"%s",msg.c_str()); break;
case logINFO: cprintf(GRAY,"%s",msg.c_str()); break;
case logINFO: cprintf(DARKGRAY BOLD,"%s",msg.c_str()); break;
default: fprintf(pStream,"%s",msg.c_str()); break;
}
fflush(pStream);

View File

@ -50,7 +50,7 @@ int main(int argc, char *argv[]) {
//Catch signal SIGINT to close files properly
signal(SIGINT,closeFile);
system("setterm -term linux -back black");
system("setterm -background white");
int ret = slsReceiverDefs::OK;
receiver = new slsReceiverUsers(argc, argv, ret);