Logging API, fix Code Style