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











SourceForge.net Logo



Log

 

Using diagnostic logs

 

 

log.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

struct Foo {

    int i;

 

    String ToString() const { return "Foo: " + AsString(i); }

 

    Foo() { i = 0; }

    Foo(int i) : i(i) {}

};

 

CONSOLE_APP_MAIN

{

    LOG(123);

    LOG("Loop:");

    LOGBEGIN();

    for(int i = 0; i < 4; i++)

        DUMP(i);

    LOGEND();

    DUMP(Foo(1));

    Vector<String> x;

    x.Add("One");

    x.Add("Two");

    x.Add("Three");

    DUMPC(x);

    static char h[200] = "alsjkdfhlaksjdhfklajshdfklj";

    LOGHEXDUMP(h, 200);

    RLOG("This will appear even in the release mode");

}

 

 

 

 

This page is also in català, čeština, deutsch, español, euskara, français, română, русский, 中文(简体) and 中文(繁體). Do you want to contribute?