Unified logging function
Merge pull request #94 from ptrllama/loggingFunc

Unified logging function