Skip to content

Commit

Permalink
Added colors for error and warnging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Glowacki committed Nov 30, 2023
1 parent ee56b0e commit e926df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ POSSIBILITY OF SUCH DAMAGE.
static std::time_t now_c;
#define logit now_c=std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());std::cout<<std::put_time(std::localtime(&now_c),"[%F_%T]\t")<<__FILE__<<"::"<<__FUNCTION__<<"():"<<__LINE__<<"\t"
#define logit_s std::cout
#define logE logit<<"Error: "
#define logW logit<<"Warning: "
#define logE logit<<"\033[1;31mError: \033[0;m"
#define logW logit<<"\033[1;33mWarning: \033[0;m"
#define logI logit<<"Info: "

#if defined _WIN32 || defined __CYGWIN__
Expand Down

0 comments on commit e926df7

Please sign in to comment.