mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
16 lines
323 B
C++
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!");
|
|
}
|