I am very new in python. I am writing a daemon in python and in my daemon I have a logger class. Logger class is something I need to use all over my daemon. Now rather that making new instance of the class inside each of my classes or passing an object of the logger class, I want to implement a PHP like static class so that it will cache the database connection inside and I can call it from anywhere without instantiating, Like,
Logger::log('This is cool');
How can I do it in python?