mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@13991 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b964dfc0cb
commit
d683088bb8
2 changed files with 27 additions and 0 deletions
16
reference/SetUppLogLine/SetUppLogLine.cpp
Normal file
16
reference/SetUppLogLine/SetUppLogLine.cpp
Normal 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!");
|
||||
}
|
||||
11
reference/SetUppLogLine/SetUppLogLine.upp
Normal file
11
reference/SetUppLogLine/SetUppLogLine.upp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
description "Changing final line output routine in logging system\377";
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
SetUppLogLine.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue