darxtrix/ptop

Use a good logging mechanism

オープン

#21 opened on 2017/07/12

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (43 件のフォーク)batch import
good first issuerefactoring

Repository metrics

Stars
 (573 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I am not able to see the logs in the .ptop.log file.

A better way would be make a directory named .ptop and add separate log files under it. For the sake of preventing memory flooding, we have to have some cycling/cleaning mechanism of log files.

Need to see what are the best practices for usage of logging module.

Observations

  • Current behavior is that only INFO level logs are made to the log file and upon termination/quitting of ptop the log file is erased.

コントリビューターガイド