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











SourceForge.net 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?