Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
IO
detail
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
struct
tm
localtm;
14
strftime(
15
ts, strlen(ts) + 1,
"%d-%b-%Y %H:%M:%S %Z"
, localtime_r(&t, &localtm));
16
mf::LogAbsolute
(
"fileAction"
) << ts <<
" "
<< msg <<
'\"'
<< file <<
'\"'
;
17
}
msg
void msg(const char *fmt,...)
Definition:
message.cpp:107
string
std::string string
Definition:
nybbler.cc:12
art::detail::logFileAction
void logFileAction(const char *msg, std::string const &file)
Definition:
logFileAction.cc:9
demo.tm
tm
Definition:
demo.py:21
MessageLogger.h
logFileAction.h
time
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
cache_state.file
file
Definition:
cache_state.py:421
mf::LogAbsolute
MaybeLogger_< ELseverityLevel::ELsev_severe, true > LogAbsolute
Definition:
MessageLogger.h:219
Generated by
1.8.11