DataStorage verwendet das Paketprotokoll und den Logger von edgex .
Als Ergebnis gibt es in /var/edge-orchestration/log/logmgr.log separate Logdateien für edgex und für Edge-Orchestration mit unterschiedlichem Stil.
level=INFO ts=2020-11-11T07:43:11.040198344Z app=datastorage source=init.go:138 msg="Check Metadata service's status ..."
level=INFO ts=2020-11-11T07:43:11.040289585Z app=datastorage source=init.go:138 msg="Check Data service's status ..."
level=ERROR ts=2020-11-11T07:43:11.042473566Z app=datastorage source=init.go:149 msg="Error getting ping: Get \"http://localhost:48081/api/v1/ping\": dial tcp 127.0.0.1:48081: connect: connection refused "
level=ERROR ts=2020-11-11T07:43:11.043495198Z app=datastorage source=init.go:149 msg="Error getting ping: Get \"http://localhost:48080/api/v1/ping\": dial tcp 127.0.0.1:48080: connect: connection refused "
2020/11/11 07:43:11 discovery.go:562: [deviceDetectionRoutine] edge-orchestration-3125da9e-1e9a-41aa-ac83-004725eb2d1e
2020/11/11 07:43:11 discovery.go:563: [deviceDetectionRoutine] confInfo : ExecType(container), Platform(docker)
2020/11/11 07:43:11 discovery.go:564: [deviceDetectionRoutine] netInfo : IPv4([]), RTT(0)
2020/11/11 07:43:11 discovery.go:565: [deviceDetectionRoutine] serviceInfo : Services([])
2020/11/11 07:43:11 discovery.go:566:
Ich denke, wir sollten zumindest den gleichen Stil haben.
Darüber hinaus möchten wir auch Folgendes berücksichtigen:
@suresh-lc @sun-sharma Was hältst du von deiner Meinung über @t25kim und mich?
Guter Punkt herausgebracht. Werde prüfen, ob es einen gemeinsamen Protokollierungsstil gibt.