2022-10-20 11:30:15 -04:00
|
|
|
/*
|
|
|
|
* Created by Brett Terpstra 6920201 on 14/10/22.
|
|
|
|
* Copyright (c) Brett Terpstra 2022 All Rights Reserved
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STEP_2_LOGGING_H
|
|
|
|
#define STEP_2_LOGGING_H
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
// im only going to make this class if I have time (to add dates, output to file, and colored severity)
|
|
|
|
|
|
|
|
// log fatal
|
2022-12-02 23:32:18 -05:00
|
|
|
#define flog std::cerr << "[Fatal]:\t"
|
2022-10-20 11:30:15 -04:00
|
|
|
// log error
|
2022-12-02 23:32:18 -05:00
|
|
|
#define elog std::cerr << "[Error]:\t"
|
2022-10-20 11:30:15 -04:00
|
|
|
// log warning
|
2022-12-02 23:32:18 -05:00
|
|
|
#define wlog std::cout << "[Warning]:\t"
|
2022-10-20 11:30:15 -04:00
|
|
|
// log info
|
2022-12-02 23:32:18 -05:00
|
|
|
#define ilog std::cout << "[Info]: \t"
|
2022-10-20 11:30:15 -04:00
|
|
|
// log debug
|
2022-12-02 23:32:18 -05:00
|
|
|
#define dlog std::cout << "[Debug]:\t"
|
2022-10-20 11:30:15 -04:00
|
|
|
// log trace
|
2022-12-02 23:32:18 -05:00
|
|
|
#define tlog std::cout << "[Trace]:\t"
|
2022-10-20 11:30:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
#endif //STEP_2_LOGGING_H
|