module documentation
Undocumented
| Class | |
Base class for all Bootstraparse errors |
| Class | |
Optional token could not be matched with last element in pile (not a container). |
| Class | |
The token is not final and cannot be contained. Indicative of a mismatched token. |
| Class | |
Exception class for parsing errors |
| Function | init |
Initializes logging :param filename: The path for the log file :param loglevel: The level of logging: "ERROR", "INFO", "WARNING", "DEBUG", "CRITICAL" :param filemode: The mode of the log file: "w", "a" :param handler: The handler to use :type filename: str :type loglevel: str :type filemode: str :type handler: logging... |
| Function | log |
Logs an exception :param exception: The exception to log :param level: The level of the exception :type level: str :return: None |
| Function | log |
Logs a message :param message: The message to log :param level: The level of the message :type level: str :type message: str :return: None |
| Constant | _ERRORS |
Undocumented |
def init_logging(filename=None, loglevel='ERROR', filemode='w', handler=None):
Initializes logging :param filename: The path for the log file :param loglevel: The level of logging: "ERROR", "INFO", "WARNING", "DEBUG", "CRITICAL" :param filemode: The mode of the log file: "w", "a" :param handler: The handler to use :type filename: str :type loglevel: str :type filemode: str :type handler: logging.Handler :return: None
def log_exception(exception, level='ERROR'):
Logs an exception :param exception: The exception to log :param level: The level of the exception :type level: str :return: None