log.py 619 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. # *****************************************************************************
  3. # Copyright (C) 2006-2020 Jorgen Stenarson. <jorgen.stenarson@bostream.nu>
  4. # Copyright (C) 2020 Bassem Girgis. <brgirgis@gmail.com>
  5. #
  6. # Distributed under the terms of the BSD License. The full license is in
  7. # the file COPYING, distributed as part of this software.
  8. # *****************************************************************************
  9. from pyreadline3.unicode_helper import ensure_str
  10. from .logger import LOGGER
  11. def log(record: str) -> None:
  12. s = ensure_str(record)
  13. LOGGER.debug(s)