Project

General

Profile

Actions

機能 #3344

open

ログメッセージをカラーにする

Added by n-ando about 9 years ago. Updated about 7 years ago.

Status:
新規
Priority:
通常
Assignee:
Start date:
10/20/2015
Due date:
% Done:

0%

Estimated time:

Description

ログメッセージをカラーにする

https://twitter.com/yosuke/status/656276628830457856

@openrtm_ando ログの出力のデフォルトはstdoutにしておいてほしいです。あとエラーは赤で。どんな名前のポートができたか、どんな名前のパラメータがバインドされたか、どこから接続されたか、Activateされたなどのイベントも基本infoとして表示する方向で。

RELENG_1_1 向けにはとりあえず、固定カラー表示で実装の方向。
1.2では、デフォルトは1.1と同じで、rtc.confで指定可能にする。


Files

SystemLogger.cpp (5.88 KB) SystemLogger.cpp kawasaki, 11/30/2017 04:55 PM
Manager.cpp (67.4 KB) Manager.cpp kawasaki, 11/30/2017 04:55 PM
SystemLogger.h (16.5 KB) SystemLogger.h kawasaki, 11/30/2017 04:55 PM
Actions #1

Updated by kawasaki about 7 years ago

  • File Manager.cpp added
  • File SystemLogger.cpp added
  • File SystemLogger.h added

rtc.conf 設定項目にログのカラーの切り替えをする以下の項目を追加。

logger.color_enable: YES / NO (default: NO)
Actions #2

Updated by kawasaki about 7 years ago

  • File deleted (SystemLogger.cpp)
Actions #3

Updated by kawasaki about 7 years ago

  • File deleted (SystemLogger.h)
Actions #4

Updated by kawasaki about 7 years ago

  • File deleted (Manager.cpp)

Updated by kawasaki about 7 years ago

デフォルトをYESからNOへ修正

Actions #6

Updated by kawasaki about 7 years ago

Throughputコンポーネントの起動スクリプトdirect.shを改修して、logger.color_enableを与える、又は無指定でManagerのログに対して色が変わるかを確認した。
(directLogColor.sh, directLogMono.sh,directLog.sh)
(VM:Ubuntu Linux 16.04 Desktop(1012-1814作成 15スクリプト追加)
(home/parallels/changeColor)

Actions

Also available in: Atom PDF