pydgn.log

log.logger

class pydgn.log.logger.Logger(filepath, mode, debug)

Bases: object

Class that implements simple logging facilities

Parameters
  • filepath (str) – the path to the file where to write

  • mode (str) – can be ‘w’ (write) or ‘a’ (append)

  • debug (bool) – whether to print con screen (True)or to actually log on file (False)

log(content)

Logs a string to the file associated to filepath

Parameters

content (str) – content to log