Skip to content

Commit

Permalink
Adding timestamp to logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikalv committed Aug 17, 2014
1 parent 68ade60 commit 05fa675
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Log.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include "Log.h"
#include <boost/date_time/posix_time/posix_time.hpp>

Log * g_Log = nullptr;

void LogMsg::Process()
{
output << boost::posix_time::second_clock::local_time() << " - ";
output << s.str();
}

Expand Down
4 changes: 2 additions & 2 deletions Makefile.bsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ CC = g++
CFLAGS = -std=c++11 -O2
include filelist.mk
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
LIBS =
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 =

all: obj i2p

Expand Down
8 changes: 4 additions & 4 deletions Makefile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
CC = g++
CFLAGS = -g -Wall -std=c++0x
include filelist.mk
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LIBS =
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LIBS =

#check if AES-NI is supported by CPU
ifneq ($(shell grep -c aes /proc/cpuinfo),0)
ifneq ($(shell grep -c aes /proc/cpuinfo),0)
CPU_FLAGS = -DAESNI
endif

Expand Down
4 changes: 2 additions & 2 deletions Makefile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ CC = clang++
CFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include
include filelist.mk
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
LIBS =
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 =

# OSX Notes
# http://www.hutsby.net/2011/08/macs-with-aes-ni.html
Expand Down

0 comments on commit 05fa675

Please sign in to comment.