fix coding style
destroy must return void.
logger_gflush must be part of public API
adherency to coding style and minor cleanup.
add logger tests. More to come.