kubo/plugin/plugins
Oli Evans edfe9c5efd
feat: add peerlog plugin
adds a plugin to log just peerIDs for nodes we connect to, to allow us to see how many unique peers a node connects to over time.

It's set up a preloaded plugin, so it would be enabled by default. We may want to extract it to a seperate repo so we can make it an optional add on.

**Usage**

```console
$ GOLOG_FILE=~/peer.log IPFS_LOGGING_FMT=json ipfs daemon
```

**output**

```json
{"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
{"level":"info","ts":"2020-02-10T13:54:59.095Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"disconnected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
```

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-02-10 14:05:16 +00:00
..
badgerds fix(badgerds): turn off sync writes by default 2020-01-09 09:55:39 +01:00
flatfs plugins: add support for plugin configs 2019-08-29 17:17:23 -07:00
git plugins: add support for plugin configs 2019-08-29 17:17:23 -07:00
levelds plugins: add support for plugin configs 2019-08-29 17:17:23 -07:00
peerlog feat: add peerlog plugin 2020-02-10 14:05:16 +00:00
.gitignore plugin: make the plugin preload work again 2017-07-13 21:16:04 +02:00
gen_main.sh chore: fix linter nits and tests that don't compile 2019-05-21 11:09:57 -07:00
Rules.mk Move datastores to plugins 2018-11-05 15:40:23 +01:00