LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
logFileAction.cc
Go to the documentation of this file.
1
#include "
art/Framework/IO/detail/logFileAction.h
"
2
// vim: set sw=2:
3
#include "
messagefacility/MessageLogger/MessageLogger.h
"
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 <<
'\"'
;
15
mf::FlushMessageLog
();
16
}
art::detail::logFileAction
void logFileAction(const char *msg, std::string const &file)
Definition:
logFileAction.cc:9
mf::FlushMessageLog
void FlushMessageLog()
Definition:
MessageLogger.cc:576
MessageLogger.h
logFileAction.h
file
TFile * file
Definition:
comparison_ascii.C:5
mf::LogAbsolute
MaybeLogger_< ELseverityLevel::ELsev_severe, true > LogAbsolute
Definition:
MessageLogger.h:222
art
Framework
IO
detail
logFileAction.cc
Generated on Wed Dec 12 2018 14:42:32 for LArSoft by
1.8.11