Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 notes but discard info and debug if 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.

Metadata

Release files for vane-native 0.1.0a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vane-native 0.1.0a4
File Size Uploaded
vane_native-0.1.0a4.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vane-native 0.1.0a4
File Interpreter ABI Platform
vane_native-0.1.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / vane_native-0.1.0a4.tar.gz

Download URL vane_native-0.1.0a4.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f8e16f43dd4417a6f40db054ae804c2c30a3bb2d88b6e795823851edce0dc946
BLAKE2b-256 checksum
How to use checksums
7329e19b03a96d32b5f5542502e8d3cf20d225c42e107fb765f8f42c6345962e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / vane_native-0.1.0a4-py3-none-any.whl

Download URL vane_native-0.1.0a4-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6477aaaa6b68f878b10d8c475d7c204b0676a87c3dc50b8c678b57179dab6c44
BLAKE2b-256 checksum
How to use checksums
f9cb1341d061ebdda208c658babbff3d0dca0be9ed2473c274dfc1e9663ab547
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.0a4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page