0

I'm gathering ideas, all proposals are welcome.

In a real time complex data processing library, I need to generate very explicit and complete diagnostic messages when a serious exception is thrown. Memory print and CPU usage is a big constraint. I have veru complex object graphs to trace.

I read about log4j NDC and MDC but it isn't appropriate for my needs.

Any ideas ?

Zofren
  • 1,190
  • 2
  • 11
  • 22
  • 'log4j NDC and MDC but it isn't appropriate for my needs' - why not? You have some text and you want to log it so, why is a logger not appropriate? Memory/CPU? If the use of such resources by a logger is a problem, your system is on the verge of collapse anyway.. – Martin James May 15 '12 at 15:20
  • MDC and NDC are server flavored, and perfect to deal with client session. Moreover, they allow to optionnaly add some details on log message if configured in log4j.properties for example. But I have no control on this file but I need to systematically display these contextual error messages. – Zofren Jun 06 '12 at 12:08

0 Answers0