darxtrix/ptop

Use a good logging mechanism

Open

#21 ouverte le 12 juil. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (43 forks)batch import
good first issuerefactoring

Métriques du dépôt

Stars
 (573 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur