Skip to main content

Python Logger using LLVM Diagnostics specifications

Project description

version license coverage qualitygate

Python module for creating diagnostics using the LLVM diagnostics specification

Installation

$ pip install llvm-diagnostics

Example

from llvm_diagnostics import messages

message = messages.DiagnosticsMessage(
    file_path='fake_file.py',
    line_number=10,
    column_number=15,
    level=messages.DiagnosticsLevel.WARNING,
    message='Value exceeds maximum, automatically capped to 100',
    hint=messages.DiagnosticsHint('mPercentage = 105', mismatch='105', expectation='100')
).report()

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

llvm-diagnostics-0.0.2.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

llvm_diagnostics-0.0.2-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

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