medcat

Subpackages

Submodules

Package Contents

Functions

add_default_log_handlers([log, target_file])

Add default log handlers to the specified logger.

Attributes

logger

name

distribution

medcat.logger
medcat.add_default_log_handlers(log=logger, target_file='medcat.log')

Add default log handlers to the specified logger. This method will add a file handler that will write into target_file (defaults to ‘medcat.log’) and a console handler that outputs to the console.

Parameters:
  • log (logging.Logger) – The logger to add the handlers to. Defaults to logger.

  • target_file (str) – The target file for file handler. Defaults to ‘medcat.log’.

Return type:

None

medcat.name = 'medcat'
medcat.distribution