//_____________________________________________________________________________
AliLog::AliLog(const AliLog& log) :
- TObject(log)
+ TObject(log),
+ fGlobalLogLevel(log.fGlobalLogLevel),
+ fModuleDebugLevels(log.fModuleDebugLevels),
+ fClassDebugLevels(log.fClassDebugLevels),
+ fPrintRepetitions(log.fPrintRepetitions),
+ fRepetitions(log.fRepetitions),
+ fLastType(log.fLastType),
+ fLastMessage(log.fLastMessage),
+ fLastModule(log.fLastModule),
+ fLastClassName(log.fLastClassName),
+ fLastFunction(log.fLastFunction),
+ fLastFile(log.fLastFile),
+ fLastLine(log.fLastLine)
{
// copy constructor
if (gEnv->Defined(name)) {
TString stream = gEnv->GetValue(name, "Standard");
if (stream.CompareTo("standard", TString::kIgnoreCase) == 0) {
- SetStandardOutput(EType(iType));
+ SetStandardOutput(EType_t(iType));
AliDebug(3, Form("output stream set to standard output for type %s",
typeNames[iType]));
} else if (stream.CompareTo("error", TString::kIgnoreCase) == 0) {
- SetErrorOutput(EType(iType));
+ SetErrorOutput(EType_t(iType));
AliDebug(3, Form("output stream set to error output for type %s",
typeNames[iType]));
} else if (!stream.IsNull()) {
- SetFileOutput(EType(iType), stream);
+ SetFileOutput(EType_t(iType), stream);
AliDebug(3, Form("output stream set to file %s for type %s",
stream.Data(), typeNames[iType]));
}
}
//_____________________________________________________________________________
-void AliLog::SetGlobalLogLevel(EType type)
+void AliLog::SetGlobalLogLevel(EType_t type)
{
// set the global debug level
}
//_____________________________________________________________________________
-void AliLog::SetStandardOutput(EType type)
+void AliLog::SetStandardOutput(EType_t type)
{
// write log messages of the given type to the standard output (stdout)
}
//_____________________________________________________________________________
-void AliLog::SetErrorOutput(EType type)
+void AliLog::SetErrorOutput(EType_t type)
{
// write log messages of the given type to the error output (stderr)
}
//_____________________________________________________________________________
-void AliLog::SetFileOutput(EType type, const char* fileName)
+void AliLog::SetFileOutput(EType_t type, const char* fileName)
{
// write log messages of the given type to the given file
}
//_____________________________________________________________________________
-void AliLog::SetPrintType(EType type, Bool_t on)
+void AliLog::SetPrintType(EType_t type, Bool_t on)
{
// switch on or off the printing of the message type for the given message type
}
//_____________________________________________________________________________
-void AliLog::SetPrintModule(EType type, Bool_t on)
+void AliLog::SetPrintModule(EType_t type, Bool_t on)
{
// switch on or off the printing of the module for the given message type
}
//_____________________________________________________________________________
-void AliLog::SetPrintScope(EType type, Bool_t on)
+void AliLog::SetPrintScope(EType_t type, Bool_t on)
{
// switch on or off the printing of the scope/class name
// for the given message type
}
//_____________________________________________________________________________
-void AliLog::SetPrintLocation(EType type, Bool_t on)
+void AliLog::SetPrintLocation(EType_t type, Bool_t on)
{
// switch on or off the printing of the file name and line number
// for the given message type
//_____________________________________________________________________________
-void AliLog::Write(const char* name, Int_t option)
+void AliLog::WriteToFile(const char* name, Int_t option)
{
// write the log object with the given name and option to the current file
{"Fatal", "Error", "Warning", "Info", "Debug"};
if (fPrintType[type]) {
- fprintf(stream, "%s in ", typeNames[type]);
+ fprintf(stream, "%c-", typeNames[type][0]);
}
- fprintf(stream, "<");
if (fPrintModule[type] && module) {
fprintf(stream, "%s/", module);
}
fprintf(stream, "%s::", className);
}
if (message) {
- fprintf(stream, "%s>: %s", function, message);
+ fprintf(stream, "%s: %s", function, message);
} else {
- fprintf(stream, "%s>", function);
+ fprintf(stream, "%s", function);
}
if (fPrintLocation[type] && file) {
fprintf(stream, " (%s:%.0d)", file, line);
//_____________________________________________________________________________
-Int_t AliLog::RedirectStdoutTo(EType type, UInt_t level, const char* module,
+Int_t AliLog::RedirectStdoutTo(EType_t type, UInt_t level, const char* module,
const char* className, const char* function,
const char* file, Int_t line, Bool_t print)
{
}
//_____________________________________________________________________________
-Int_t AliLog::RedirectStderrTo(EType type, UInt_t level, const char* module,
+Int_t AliLog::RedirectStderrTo(EType_t type, UInt_t level, const char* module,
const char* className, const char* function,
const char* file, Int_t line, Bool_t print)
{
}
//_____________________________________________________________________________
-Int_t AliLog::RedirectTo(FILE* stream, EType type, UInt_t level,
+Int_t AliLog::RedirectTo(FILE* stream, EType_t type, UInt_t level,
const char* module, const char* className,
const char* function, const char* file, Int_t line,
Bool_t print)
//_____________________________________________________________________________
-ostream& AliLog::Stream(EType type, UInt_t level,
+ostream& AliLog::Stream(EType_t type, UInt_t level,
const char* module, const char* className,
const char* function, const char* file, Int_t line)
{
}
//_____________________________________________________________________________
-ostream& AliLog::GetStream(EType type, UInt_t level,
+ostream& AliLog::GetStream(EType_t type, UInt_t level,
const char* module, const char* className,
const char* function, const char* file, Int_t line)
{