33 #define INCLXX_IN_GEANT4_MODE 1
43 return std::string(
"Error");
45 return std::string (
"Fatal");
47 return std::string(
"Warning");
49 return std::string(
"Debug");
51 return std::string(
"");
53 return std::string(
"DataBlock");
55 return std::string(
"Unknown");
58 void LoggerSlave::logMessage(
const MessageType type,
const std::string &fileName,
const G4int lineNumber, std::string
const &
s)
const {
60 (*logStream) << typeToString(type) <<
" [" <<
61 fileName.substr(fileName.find_last_of(
"/")+1) <<
62 ":" << lineNumber <<
"] ";
67 void LoggerSlave::logDataBlock(
const std::string &
block,
const std::string &fileName,
const G4int lineNumber)
const {
69 fileName.substr(fileName.find_last_of(
"/")+1) <<
70 ":" << lineNumber <<
"] " << std::endl
73 <<
"ENDDATA" << std::endl;
78 LoggerSlave * Logger::theLoggerSlave = NULL;