logError() : fix scope and visibility ..