Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

SetUppLogLine

 

Changing final line output routine in logging system

 

 

SetUppLogLine.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

LogLineFn std_log;

 

void MyLogLine(const char *buffer, int len, int depth)

{

    Cout() << "MYLOG: " << String(buffer, len) << "\n";

    std_log(buffer, len, depth); // call standard log too

}

 

CONSOLE_APP_MAIN {

    std_log = SetUppLog(MyLogLine);

    LOG("It Works!");

}

 

 

 

 

Do you want to contribute?