00001 #include "art/Framework/IO/detail/logFileAction.h"
00002
00003 #include "messagefacility/MessageLogger/MessageLogger.h"
00004 #include <ctime>
00005 #include <string.h>
00006
00007 void
00008 art::detail::logFileAction(const char* msg, std::string const& file)
00009 {
00010 time_t t = time(0);
00011 char ts[] = "dd-Mon-yyyy hh:mm:ss TZN ";
00012 strftime(ts, strlen(ts) + 1, "%d-%b-%Y %H:%M:%S %Z", localtime(&t));
00013 mf::LogAbsolute("fileAction") << ts << " " << msg << '\"' << file << '\"';
00014 mf::FlushMessageLog();
00015 }