When using the logging
module from python for logging purposes. Is it best-practice to define a logger for each class?
Considering some things would be redundant such as file log location, I was thinking of abstracting logging to its own class and import an instance into each of my classes requiring logging. However I'm not sure if this is best practice or not?
logger = logging.getLogger(__name__)
go at the top of the module or inside each function/method that wants to log? – Elson