From: Darren Cook (darren_at_[hidden])
Date: 2005-02-14 20:26:59
> I have continued working on a logging library as a possible contender
> for a new Boost library.
I just had a quick look. My usual logging needs are:
1. Being able to remove all logging code in a release build
I see you have macros, though their names are long and it wasn't clear
what all the different macros do (in examples/macros.cpp).
Any issues in just doing a #define after including your headers to
rename your macros into something short so I can simply write:
LOG("In f, a="<<a<<",b="<<b);
2. Logging with timestamp automatically prefixed. Do you have something
pre-built for this? If not, can you show what code I have to write to
3. Logging with file, line number and/or function name included.
4. Logging to an in-memory buffer that only stores e.g. the last 50K or
the last 100 log lines; with a function to output the log to an ostream.
(i.e. I want to add LOG() lines are the start of each function, and at
certain other key points, and then output a history trace when something
Do you have anything like this? If not which current component would you
suggest I use as a starting point to modify?
> current state is available for simple download from
> www.eng.buffalo.edu/~johneddy. It is not well Boost-ified yet but the
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk