def METHOD_NAME(message, process):
    """Logs process output message along with its pid."""
    logger = logging.getLogger("Process")
    message = message.decode(encoding="utf-8", errors="replace").strip("\n")
    if message:
        logger.log(ProcessWrapper.loglevel, "[%d] %s", process.pid, message)