[Test Suite] Improving logging
Registered by
Nadia Alramli
All logs should follow the same template and indicate the type of the log at the beginning. It is also better if the error numbers started from 1 rather than 0. Here is a suggestion:
%(type) %(number): %(message)
Input: <%(input)>
Action: %(action)
Details: %(details)
<newline>
The type can be warning or error
If the error was an exception that can't be linked to a specific action or image then the format can become:
%(type) %(number): %(message)
Details: %(details)
We should consider using the logging module
Blueprint information
- Status:
- Complete
- Approver:
- Stani
- Priority:
- High
- Drafter:
- Nadia Alramli
- Direction:
- Approved
- Assignee:
- Nadia Alramli
- Definition:
- Approved
- Series goal:
- Accepted for 0.2
- Implementation:
- Implemented
- Milestone target:
- 0.2.8
- Started by
- Nadia Alramli
- Completed by
- Nadia Alramli
Related branches
Related bugs
Sprints
Whiteboard
Stani@Nadia 2010/03/13
Command line options such as --log need to be added alphabetically. I fixed that now for you but please remember it next time.
TODO
The --log command line option needs to be added to the phatch man page.
(?)