encfs/vendor/github.com/muflihun/easyloggingpp/samples/send-to-network/README.md
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

790 B

Send to Network

You can use this sample to send your log messages to network as requested by many users. We are not able to add it to the library as this will require some stuffs to choose what network library to use.

This sample uses asio in boost_system

Run

Compile using compile.sh file but make sure you have correct path to boost include and compiled library

mkdir bin
sh compile.sh network-logger.sh

Run a server (we are using netcat on mac for test purposes) on a different terminal

nc -l 9090

Now run ./bin/network-logger

More

You may need ELPP_NO_LOG_TO_FILE and ELPP_NO_DEFAULT_LOG_FILE depending on your needs.

Please refer to doc for further details on macros