summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-04-25 17:24:27 -0400
committerDwight <dmerriman@gmail.com>2008-04-25 17:24:27 -0400
commit8210548d7f4ca320def5567eed98aacec254bfad (patch)
tree36d2600c5d465b3e6b9329bb5a35e316e3a4aec8 /stdafx.h
parenteb204a454cfc4c9ae427b48cfd01fe2a4921a59e (diff)
downloadmongo-8210548d7f4ca320def5567eed98aacec254bfad.tar.gz
dbproblem.log file
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 567f37be5b5..e9b68dbf200 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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;
+}