add ifdef macro to avoid warnings when not use logging mode
Merge pull request #44 from nguyenvuthiennga/master

Add macro to avoid warning while not using logging mode