Python Function For Logging How To Call And Use