Edge-home-orchestration-go: 【DataStorage】2種類のロガー

作成日 2020年11月11日  ·  2コメント  ·  ソース: lf-edge/edge-home-orchestration-go

DataStorageは、パッケージログとedgex
その結果、 / var / edge-orchestration / log / logmgr.logには、異なるスタイルのedgexとedge-orchestrationの別々のログファイルがあります。

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:

少なくとも同じスタイルが必要だと思います。

bug refactoring

全てのコメント2件

さらに、私たちも考慮したいのは次のとおりです。

  1. ログ表現スタイルの標準的な方法に関して、既存のものをセットアップおよび/または採用する必要性を評価します。
  2. 開発者が独自の視点で依存するさまざまなログスタイルを採用するために、抽象レイヤーをセットアップする必要性を評価します。

@ suresh-lc @ sun-sharma @ t25kimと私についてどう思いますか?

良い点が出ました。 一般的なログスタイルの作成を確認します。

このページは役に立ちましたか?
0 / 5 - 0 評価