Skip to main content

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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vane_native-0.1.0a3.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vane_native-0.1.0a3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file vane_native-0.1.0a3.tar.gz.

File metadata

  • Download URL: vane_native-0.1.0a3.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

Hashes for vane_native-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 f9669d21c031e68563cfe6ba7df2e4f6b187d0b102202d6b26bc757e7327b30f
MD5 493f83f32a7765c9257e3b81d77e7048
BLAKE2b-256 4565687a9aba06469cf645a0268b868f424274dd6e9bea74bc222027cf378004

See more details on using hashes here.

File details

Details for the file vane_native-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: vane_native-0.1.0a3-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

Hashes for vane_native-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 15c728fba3ec43344eda6e16df80715e478c417434e003cae6192da08d84555a
MD5 ce5388d4e1a4a71c499a8ca73058e9d1
BLAKE2b-256 035363d6dfb5f49653c7a8562e405e0d2b4412c8174424cae3ec4660e2dfc0df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page