sksurgeryfredmatplotlib.logging.fred_logger module
Class to handle sksurgeryfred logging
- class sksurgeryfredmatplotlib.logging.fred_logger.Logger(config)[source]
Bases:
objectImplements logging functionality for sksurgeryfred. Configuration is done by passing a dictionary on construction. Subsequent calls to log(“message”) will write to log file.
- Parameters
config –
a dictionary containing configuration
parameters. If dictionary contains no “logger” entry then an empty logger is created and subsequent calls to log() will have no effect. Otherwise a logger is created according to the entries in the logger config dictionary. (“log file name”, “overwrite existing”
- Raises
IOError if the user can’t write to the named log file?