now naming for the logger: "mrw.stacktrace" instead of simply "libmrw"

master
Marc Wäckerlin 20 years ago
parent 9651f959a7
commit 5591d50651
  1. 11
      mrw/autostacktracelog4cxx.cpp

@ -9,6 +9,9 @@
@license LGPL, see file <a href="license.html">COPYING</a> @license LGPL, see file <a href="license.html">COPYING</a>
$Log$ $Log$
Revision 1.6 2005/02/25 16:18:15 marc
now naming for the logger: "mrw.stacktrace" instead of simply "libmrw"
Revision 1.5 2005/01/28 12:13:11 marc Revision 1.5 2005/01/28 12:13:11 marc
interference between group name StackTrace and class name StackTrace interference between group name StackTrace and class name StackTrace
@ -70,7 +73,7 @@ namespace mrw {
@code @code
void unexpected_log4cxx() { void unexpected_log4cxx() {
log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("libmrw")); log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(_T("mrw.stacktrace")));
logger->fatal("Unexpected Exception", __FILE__, __LINE__); logger->fatal("Unexpected Exception", __FILE__, __LINE__);
StackTrace::createSymtable(); StackTrace::createSymtable();
std::string st((std::string)StackTrace()); std::string st((std::string)StackTrace());
@ -92,7 +95,7 @@ namespace mrw {
*/ */
void unexpected_log4cxx() { void unexpected_log4cxx() {
log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("libmrw")); log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(_T("mrw.stacktrace")));
logger->fatal("Unexpected Exception", __FILE__, __LINE__); logger->fatal("Unexpected Exception", __FILE__, __LINE__);
StackTrace::createSymtable(); StackTrace::createSymtable();
std::string st((std::string)StackTrace()); std::string st((std::string)StackTrace());
@ -119,7 +122,7 @@ namespace mrw {
@code @code
void terminate_log4cxx() { void terminate_log4cxx() {
log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("libmrw")); log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(_T("mrw.stacktrace")));
logger->fatal("Uncaught Exception", __FILE__, __LINE__); logger->fatal("Uncaught Exception", __FILE__, __LINE__);
StackTrace::createSymtable(); StackTrace::createSymtable();
std::string st((std::string)StackTrace()); std::string st((std::string)StackTrace());
@ -142,7 +145,7 @@ namespace mrw {
*/ */
void terminate_log4cxx() { void terminate_log4cxx() {
log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("libmrw")); log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(_T("mrw.stacktrace")));
logger->fatal("Uncaught Exception", __FILE__, __LINE__); logger->fatal("Uncaught Exception", __FILE__, __LINE__);
StackTrace::createSymtable(); StackTrace::createSymtable();
std::string st((std::string)StackTrace()); std::string st((std::string)StackTrace());

Loading…
Cancel
Save