35#define INCLXX_IN_GEANT4_MODE 1
45 return std::string(
"Error");
47 return std::string (
"Fatal");
49 return std::string(
"Warning");
51 return std::string(
"Debug");
53 return std::string(
"");
55 return std::string(
"DataBlock");
57 return std::string(
"Unknown");
60 void LoggerSlave::logMessage(
const MessageType type,
const std::string &fileName,
const G4int lineNumber, std::string
const &s)
const {
62 (*logStream) << typeToString(type) <<
" [" <<
63 fileName.substr(fileName.find_last_of(
"/")+1) <<
64 ":" << lineNumber <<
"] ";
69 void LoggerSlave::logDataBlock(
const std::string &
block,
const std::string &fileName,
const G4int lineNumber)
const {
71 fileName.substr(fileName.find_last_of(
"/")+1) <<
72 ":" << lineNumber <<
"] " << std::endl
75 <<
"ENDDATA" << std::endl;
80 LoggerSlave * Logger::theLoggerSlave = NULL;