fixed bug of Logging in linux platform