Changeset 7941 for trunk/MagicSoft/Mars/mbase/MLog.cc
- Timestamp:
- 08/25/06 19:30:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.cc
r7853 r7941 101 101 102 102 #include <TROOT.h> // gROOT->GetListOfCleanups() 103 #include <TSystem.h> 103 104 104 105 #ifdef _REENTRANT … … 108 109 109 110 #include "MArgs.h" 111 #include "MTime.h" 110 112 #include "MParContainer.h" 111 113 … … 718 720 plug->SetBit(kMustCleanup); 719 721 } 722 723 // -------------------------------------------------------------------------- 724 // 725 // Returns "yyyy-mm-dd user@host gROOT->GetName()[pid]" 726 // 727 TString MLog::Intro() 728 { 729 UserGroup_t *user = gSystem->GetUserInfo(); 730 731 TString rc; 732 rc += MTime(-1).GetSqlDateTime(); 733 rc += " "; 734 rc += user->fUser; 735 rc += "@"; 736 rc += gSystem->HostName(); 737 rc += " "; 738 rc += gROOT->GetName(); 739 rc += "["; 740 rc += gSystem->GetPid(); 741 rc += "] "; 742 743 delete user; 744 745 return rc; 746 }
Note:
See TracChangeset
for help on using the changeset viewer.