I want to create wrapper over print function or any logging function so that if internally I need to change logging/print strategy it should work without changing in all module.For ex:
print "Hello this is test A:%d B:%d C:%d",a,b,c
instead of this it should look like:
MyPrint "Hello this is test A:%d B:%d C:%d",a,b,c
which will give me same output.
This gives me flexiblity of changing definition of MyPrint without affecting print in whole code.
In C++ this can be acheived through macro but not sure how we can achieve in python.