diff options
author | Dwight <dmerriman@gmail.com> | 2008-04-25 17:24:27 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-04-25 17:24:27 -0400 |
commit | 8210548d7f4ca320def5567eed98aacec254bfad (patch) | |
tree | 36d2600c5d465b3e6b9329bb5a35e316e3a4aec8 /stdafx.h | |
parent | eb204a454cfc4c9ae427b48cfd01fe2a4921a59e (diff) | |
download | mongo-8210548d7f4ca320def5567eed98aacec254bfad.tar.gz |
dbproblem.log file
Diffstat (limited to 'stdafx.h')
-rw-r--r-- | stdafx.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -47,6 +47,7 @@ typedef char _TCHAR; #include <fstream>
using namespace std;
+#include "time.h"
#include <map>
#include <string>
#include <vector>
@@ -86,3 +87,13 @@ typedef struct _OWS { char string[400];
} *OWS;
+extern ofstream problems;
+
+// not threadsafe
+inline ofstream& problem() {
+ time_t t;
+ time(&t);
+ string now(ctime(&t),0,20);
+ problems << now;
+ return problems;
+}
|