how i can implement the class as callable and as object also?
Explanation of the idea :
I would like to build a class that can be called like a function without initializing it as an instance. For example, I want to create a class named logger
and use it in two ways: the first way is logger("some text")
and the second way is logger.info("some text")
using dot notation.