summaryrefslogtreecommitdiff
path: root/logging.cpp
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-09-04 08:40:52 -0600
committerJoe Zhao <ztuowen@gmail.com>2015-09-04 08:40:52 -0600
commit8786ca9366a76c6695a6cb4cb2bcfb32e913d950 (patch)
tree06f47466120913871f2c2c639ba4d33a5e7b0ff6 /logging.cpp
downloadpomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.tar.gz
pomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.tar.bz2
pomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.zip
Initial commit
Diffstat (limited to 'logging.cpp')
-rw-r--r--logging.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/logging.cpp b/logging.cpp
new file mode 100644
index 0000000..d426978
--- /dev/null
+++ b/logging.cpp
@@ -0,0 +1,20 @@
+//
+// Created by joe on 9/3/15.
+//
+
+#include "logging.h"
+#include "stdlib.h"
+#include<iostream>
+#include <fstream>
+
+using namespace std;
+void log(tres* res,int code)
+{
+ if (code)
+ {
+ ofstream fot;
+ fot.open("~/.pomodori");
+ fot<<1<<endl;
+ }
+ exit(0);
+} \ No newline at end of file