Modular colourised logger with pluggable backends (TBD)
Reason this release was yanked:
Wrong configuration, does not work
Project description
Vane
Tiny, customisable, modular and easy-to-use python logger.
Getting started
To use Vane in your project simply import log method. This is as barebones as it gets. If you wish to add more log levels, configuration (like different timestamp types, logging to files, decorators, default logging level) import the necessary method.
Logging methods
- debug
- info
- note
- warn
- error
- critical
- alert
- emergency
Customisation options
configure method takes in a dictionary with a few options to define.
- outfile - specify a file to which Vane should log. By default it does not log anything into files.
- level - default level of logging. Vane will skip anything above certain level. For example, you may want to only log
notesbut discardinfoanddebugif a parameter is not set in your application. - timestamp_type - takes in predefined timestap types. Can be full name, short name or number. Defaults to datetime. Available timestamps are:
- datetime (dt, 1) - YYYY-MM-DD HH:mm:SS format.
- runtime (rt, 2) - runtime tampstamp.
- log_number (ln, 3) - log number in current application run.
- verbose (v, 4) - combines all above with
|between each type - short (5) - simple HH:mm:SS format.
- timestamp_left_decorator - character to be put before timestamp. Can be any valid character. Defaults to
[ - timestamp_right_decorator - character to be put after timestamp. Can be any valid character. Defaults to
] - style - changes the style of log message. Defaults sto none. Not yet implemented.
- theme - Not implemented yet. Ability to customise colours of messages.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vane_native-0.1.0a2.tar.gz.
File metadata
- Download URL: vane_native-0.1.0a2.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ceb66ea7e664de9f37080aee3f9347f133cadc8f10a26cd336600985702c445
|
|
| MD5 |
c33ba8203d8b409d0c2606798a073b64
|
|
| BLAKE2b-256 |
3c5c5c1dcc9edc8274a3a597f32f3663c97d8b73252a018e08bd03a773974182
|
File details
Details for the file vane_native-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: vane_native-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
690671d3b0c2090033cdb39263a4e7da125bf682d7eb322ac48d77e3e21c34f2
|
|
| MD5 |
7752aa559f5f8a85de4a9fdea065ceba
|
|
| BLAKE2b-256 |
2461529d7588075014892bd9ee1be49c90d0f465e5327fd1a9eba9d5c56bbfca
|