I think either of these approaches would work great.
Regarding the prefix question... being able to control the prefix would also be a nice feature.
In the case of my logger, it already prints its own prefix based on which method is called.
Since your proposal is redirecting Debug.setlogger[Info,Error,etc] individually into a corresponding Mylogger.[info,error,etc.],
it would be good also to have the option to turn off the prefix, maybe along the lines of passing False, or "" as the "new prefix"
I think either of these approaches would work great. [Info,Error, etc] individually into a corresponding Mylogger. [info,error, etc.],
Regarding the prefix question... being able to control the prefix would also be a nice feature.
In the case of my logger, it already prints its own prefix based on which method is called.
Since your proposal is redirecting Debug.setlogger
it would be good also to have the option to turn off the prefix, maybe along the lines of passing False, or "" as the "new prefix"