Browse Source

Adding timestamp to logger.

pull/93/head
Mikal Villa 10 years ago
parent
commit
05fa6757ce
  1. 2
      Log.cpp
  2. 2
      Makefile.bsd
  3. 2
      Makefile.linux
  4. 2
      Makefile.osx

2
Log.cpp

@ -1,9 +1,11 @@
#include "Log.h" #include "Log.h"
#include <boost/date_time/posix_time/posix_time.hpp>
Log * g_Log = nullptr; Log * g_Log = nullptr;
void LogMsg::Process() void LogMsg::Process()
{ {
output << boost::posix_time::second_clock::local_time() << " - ";
output << s.str(); output << s.str();
} }

2
Makefile.bsd

@ -2,7 +2,7 @@ CC = g++
CFLAGS = -std=c++11 -O2 CFLAGS = -std=c++11 -O2
include filelist.mk include filelist.mk
INCFLAGS = -I/usr/include/ -I/usr/local/include/ INCFLAGS = -I/usr/include/ -I/usr/local/include/
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LIBS = LIBS =
all: obj i2p all: obj i2p

2
Makefile.linux

@ -3,7 +3,7 @@ CC = g++
CFLAGS = -g -Wall -std=c++0x CFLAGS = -g -Wall -std=c++0x
include filelist.mk include filelist.mk
INCFLAGS = INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LIBS = LIBS =
#check if AES-NI is supported by CPU #check if AES-NI is supported by CPU

2
Makefile.osx vendored

@ -2,7 +2,7 @@ CC = clang++
CFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include CFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include
include filelist.mk include filelist.mk
INCFLAGS = -DCRYPTOPP_DISABLE_ASM INCFLAGS = -DCRYPTOPP_DISABLE_ASM
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LIBS = LIBS =
# OSX Notes # OSX Notes

Loading…
Cancel
Save