S
S
sdevalex2012-09-30 22:55:02
C++ / C#
sdevalex, 2012-09-30 22:55:02

A handy library with an interface similar to console.* from browser APIs

An example of a log code in JS. Is there something similar for C++?

console.group("Scene");
    console.log("Log#1");
    console.group("Object"); 
        console.log("build");
        console.warn("warn!");
    console.groupEnd("Object");
console.groupEnd("Scene");

I would like to see something like this list in the child window of the program:


Console or window interface... it doesn't matter. Tired of reading large logs in a text editor.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2012-10-01
Protko @Fesor

Isn't it easier to write logs in YML, for example (in this case, it will not be difficult to implement the listed methods, and decent text editors can collapse branches).
I don't remember a solution.

A
Akson87, 2012-10-01
@Akson87

Here I am now making my bike for logs, in general, you can try to fasten what you want, but how will it work? A tree that grows in all directions? Or a tree of some channels that can be screwed (something similar exists now)? I think that closer to December I will draw up and lay out, but I will be glad for tips and requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question