Printing execution information?

C

carl

I have a large application that performs many different task where some
tasks can take up to minutes to complete (loading of large 3D volume data).
Currently I do like this:

std::cout << "INFO:: Parameters parsed with sucess" << std::endl;
....
....
std::cout << "INFO:: Images loaded" << std::endl;

which gets printed to the console when the application is executed. But is
there a more systematic approach to this like a C++ logger which can easily
be turned on or off?
 
M

Michael Doubez

I have a large application that performs many different task where some
tasks can take up to minutes to complete (loading of large 3D volume data).
Currently I do like this:

    std::cout << "INFO:: Parameters parsed with sucess" << std::endl;
...
...
    std::cout << "INFO:: Images loaded" << std::endl;

which gets printed to the console when the application is executed. But is
there a more systematic approach to this like a C++ logger which can easily
be turned on or off?

There are many strategies to logging which are not within the scope of
this group.

If you want a (IMHO) good logging library, you can try pantheios but
google will give you more choice.
 
C

carl

I have a large application that performs many different task where some
tasks can take up to minutes to complete (loading of large 3D volume
data).
Currently I do like this:

std::cout << "INFO:: Parameters parsed with sucess" << std::endl;
...
...
std::cout << "INFO:: Images loaded" << std::endl;

which gets printed to the console when the application is executed. But is
there a more systematic approach to this like a C++ logger which can
easily
be turned on or off?

There are many strategies to logging which are not within the scope of
this group.

If you want a (IMHO) good logging library, you can try pantheios but
google will give you more choice.




Thanks, log4cxx seems to do the job :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top