change logging() -> loggingfp()