add logging module
add snprintf macro for windows platform