
I've been profiling an application here where I work, that uses the logging library from John Torjo. With the logging disabled and using the LOG(logging_name) << (whatever to log) << ... The profiler shows that operator<< is using considerable CPU time (something like 10% of the application CPU time), so it seems that the current approach isnt sufficient. I'll probably need to create a macro that takes the logger and what to be logged and use somekind of if, just like the disabled cout example. best regards, -- Felipe Magno de Almeida Developer from synergy and Computer Science student from State University of Campinas(UNICAMP). Unicamp: http://www.ic.unicamp.br Synergy: http://www.synergy.com.br "There is no dark side of the moon really. Matter of fact it's all dark."