MCPcopy
hub / github.com/ipfs/kubo / peerLogPlugin

Struct peerLogPlugin

plugin/plugins/peerlog/peerlog.go:49–53  ·  view source on GitHub ↗

Log all the PeerIDs. This is considered internal, unsupported, and may break at any point. Usage: GOLOG_FILE=~/peer.log GOLOG_LOG_FMT=json ipfs daemon Output: {"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"Qm

Source from the content-addressed store, hash-verified

47// {"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
48// {"level":"info","ts":"2020-02-10T13:54:59.095Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"identified","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt","agent":"go-ipfs/0.5.0/"}
49type peerLogPlugin struct {
50 enabled bool
51 droppedCount uint64
52 events chan plEvent
53}
54
55var _ plugin.PluginDaemonInternal = (*peerLogPlugin)(nil)
56

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected