0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ログにタグづけするツール作ったよ

Posted at

はじめに

  • 繰り返しの再現確認で、再現してるかの判断が単調で面倒くさい
  • 引き継いだプロジェクトで有用なログがわからない
  • 複数のログ(android+qnx+ボードとか)があって時系列が重要なんだけどソートするのが面倒くさい
  • etc

みんなも一度はこんなことあるよね?
ということでツール化しました。

LogTag

使い方

◎ 例

  1. ログファイル
    $ cat log1.txt
    111
    222
    333
    $ cat log2.txt
    333
    222
    111                              
    
  2. タグ
    - keyword: "111"
      message: "tag1-1"
    - keyword: "111"
      message: "tag1-2"
    - keyword: "999"
      message: "tag1-3"
    
  3. 結果
    $ logtag * --sort
    TAG     CATEGORY    LOG-FILE      LOG
    tag1-1  tag1        log1.txt      111
    tag1-1  tag1        log2.txt      111
                        log1.txt      222
                        log2.txt      222
    tag1-3  tag1        log1.txt      333
    tag1-3  tag1        log2.txt      333
    

!! 正規表現も使えるよ

よければ使ってみてね

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?