.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@13991 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-02-11 22:12:41 +00:00
parent b964dfc0cb
commit d683088bb8
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#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!");
}

View file

@ -0,0 +1,11 @@
description "Changing final line output routine in logging system\377";
uses
Core;
file
SetUppLogLine.cpp;
mainconfig
"" = "";