from datetime import datetime


def __log_dt_converter(dt_object): # pragma: no cover
    """Used to convert datetime objects to strings automatically for the logger."""
    return dt_object.__str__() if isinstance(dt_object, datetime) else dt_object