Module for extended logging in Python applications.
Built-in Python logging module is a powerful tool to provide your programs with high quality logs. This project is conception continue and alternative for native python logging.
Logbook is not a rework and even not based on python logging objects but it is a rethink totally written from zero (honestly with use similar names and tricks for easier migration and use). We chose this path when found out that python logging is not enough functional and not enough flexible when we speak about integration with other our products.
With logbook you can:
- Generate and customize log file.
- Use existing file instead of creating new.
- Write messages into console instead of file.
- Generate customizable header with basic information about application, system or log.
- Log information, success and debug messages.
- Log errors with different levels (error, warning, critical).
- Abort program when high level error occurs.
- Or log messages in any desired record type.
- Separate different log blocks with border.
- Customize and design records of any type.
- Configure the default or add new record types, messages, patterns and forms.
- Manage log parameters during or after initialization.
- Reset log to default parameters.
- Close or reopen current log.
- Limit log by size or day.
Operation systems: Windows, Linux, Mac OS.
Python version: 3.7.1.
To install just download the latest release of logbook and copy src/logbook folder to your/python/folder/Lib/site-packages/.
How to Use
To start just declare log class instance:
import logbook log = logbook.Log('test')
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pypyrus_logbook-0.0.1-py3-none-any.whl (14.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
Hashes for pypyrus_logbook-0.0.1-py3-none-any.whl