43 #include "stdb_streams.h"
44 #include "StDbMessenger.hh"
49 StDbMessenger::printMessage(
const char* message, StDbMessLevel dbLevel,
int lineNumber,
const char* className,
const char* methodName) {
51 if(dbLevel<mdbLevel)
return;
57 strcpy(lString,
"Debug");
62 strcpy(lString,
"Warning");
67 strcpy(lString,
"Info");
72 strcpy(lString,
"Error");
81 printMessage(message,(
const char*)lString,lineNumber,className,methodName);
87 StDbMessenger::printMessage(
const char* message,
const char* levelString,
int lineNumber,
const char* className,
const char* methodName) {
88 mos<<
" *** "<<levelString<<
" line="<<lineNumber<<
" *** ";
89 mos<<className<<
"::"<<methodName<<
" "<<endl<<message<<endl;