helpers
Module¶
The helpers
module provides useful classes and functions
that are not part of pypersonalassistant’s core functionality.
log Class¶
-
class
pypersonalassistant.helpers.
log
(logfile=None, file_level=10, stream_level=30)[source]¶ Easily setup logs using the standard logging module.
Parameters: - logfile (string) – Path to the log file. Defaults to <your_script>_py.log
- file_level – The logging level to log to file
- stream_level – The logging level to log to stdout
Returns: A
pypersonalassistant.helpers.log
object
Attributes¶
-
log.
logger
¶ The logger object listening for logging calls; can be used to further customise logging
Type: logging.logger