May-16-2020, 02:48 AM
Hi All,
Could any one please let me know, how to create my own custom logging.
For example below:
2020-05-15 11:55:17,823: [action_done] Python is simply awesome
here -- 2020-05-15-15 11:55:17,823 = %(asctime)s
Python is simply awesome = %(message)s
[action_done] = ?
So I wanted to add this custom message '[action_done]' to each log print while logging. And it should be able to do it in all the method of that corresponding class.
Can any one suggest. Thanks in advance.
Regards,
Maiya
Could any one please let me know, how to create my own custom logging.
For example below:
2020-05-15 11:55:17,823: [action_done] Python is simply awesome
here -- 2020-05-15-15 11:55:17,823 = %(asctime)s
Python is simply awesome = %(message)s
[action_done] = ?
So I wanted to add this custom message '[action_done]' to each log print while logging. And it should be able to do it in all the method of that corresponding class.
Can any one suggest. Thanks in advance.
Regards,
Maiya