ultimatepp/reference/SetUppLogLine/SetUppLogLine.cpp
cxl c046955674 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@13991 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-02-11 22:12:41 +00:00

16 lines
323 B
C++

#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!");
}