LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
logFileAction.cc
Go to the documentation of this file.
2 // vim: set sw=2:
4 
5 #include <cstring>
6 #include <ctime>
7 
8 void
9 art::detail::logFileAction(const char* msg, std::string const& file)
10 {
11  time_t t = time(0);
12  char ts[] = "dd-Mon-yyyy hh:mm:ss TZN ";
13  strftime(ts, strlen(ts) + 1, "%d-%b-%Y %H:%M:%S %Z", localtime(&t));
14  mf::LogAbsolute("fileAction") << ts << " " << msg << '\"' << file << '\"';
16 }
void logFileAction(const char *msg, std::string const &file)
Definition: logFileAction.cc:9
void FlushMessageLog()
TFile * file
MaybeLogger_< ELseverityLevel::ELsev_severe, true > LogAbsolute