File: README.md

package info (click to toggle)
easyloggingpp 9.97.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,840 kB
  • sloc: cpp: 11,415; python: 2,336; sh: 337; makefile: 29
file content (27 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 `boost::asio`

## 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 demo) on a new tab in your terminal

```
nc -k -l 9090
```

Now run `./bin/network-logger`

## More

Please refer to [doc](https://github.com/amrayn/easyloggingpp#configuration-macros) for further details on macros