pyphi.log.enable_logging#
- pyphi.log.enable_logging(level='INFO', file=None)[source]#
Route PyPhi’s logs to the console or a file.
With no arguments,
INFO-and-above messages from thepyphilogger are written to stderr through a progress-bar-safe handler. Passfileto write to that path instead. Calling this again replaces the handler a previous call installed (handlers do not stack).