5 #include <Wt/WApplication.h> 6 #include <Wt/WEnvironment.h> 12 Wt::Dbo::Transaction t( session );
17 retVal.modify()-> cfyField().setValue( cfy );
22 "----------------------------------------------\n" 28 .arg( Wt::WDateTime::currentDateTime().toString() )
31 .arg( wApp-> instance()-> environment().headerValue(
"X-Forwarded-For") )
35 std::cout << __FILE__ <<
":" << __LINE__
37 <<
"\n----------------------------------------------" 45 Wt::WString(
"sysLog-{1}.txt")
46 .arg( Wt::WDateTime::currentDateTime().toString(
"yyyyMMdd") )
51 myfile.open( fileName.c_str(), std::ios::out | std::ios::app );
52 myfile << value <<
"\n";
62 return add( key, cfy,
false, session );
Wtx::Sys::Log::Item::Ptr add(const std::string &key, const std::string &cfy, Wtx::Dbo::Session &session)
Add an item by key/cfy.