Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 833 Bytes

File metadata and controls

36 lines (29 loc) · 833 Bytes

SocketLog

Build Status

A log review tool using tcp socket, with thread safe, send queue, and multi reviewer support.
It can be used in most platform include android/ios, and only C++11 are required.

Usage:

SocketLog::getInstance()->post("Hello World!");

There are also some examples show how to use it:

First, you should build my examples:

mkdir build && cd build
cmake ..
make

Second, run a simple example:

./examples/loopsender

or more complicated:

./examples/benchmark

Finally, just open any tcp tools(eg:nc) to see what happen:

nc localhost 6666

Notice:

default port is 6666, and will try open bigger port automatic on bind failed。