fix KFileLogger's bugs