summaryrefslogtreecommitdiff
path: root/logging.cpp
blob: 3d1fb1412815e498197ffd50b4c7157499ee04c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by joe on 9/3/15.
//

#include "logging.h"
#include "stdlib.h"
#include<iostream>
#include <fstream>
#include <ctime>

using namespace std;
void log(tres* res,int code)
{
    if (code)
    {
        ofstream fot;
        fot.open("~/.pomodori");
        time_t now = time(0);
        fot<<ctime(&now)<<endl;
    }
    exit(0);
}