Skip to main content

PyQt-Logger

A small widget to show some logs with basic syntax

python_7Z3AFD1Nlw.png

Features

  • Show logs with different colors based on their log level

  • Customizable log level colors

  • Auto archive the logs

  • Ability to read and display older logs

Installation

pip install QtLogger

Usage

Importing

from QtLogger import QtLogger

Full usage example

from QtLogger import QtLogger

from PyQt6.QtWidgets import QApplication, QMainWindow, QPushButton, QVBoxLayout, QWidget



class MainWindow(QMainWindow):

    def __init__(self):

        super().__init__()

        self.setWindowTitle("QtLogger Example")

        self.resize(500, 500)



        self.central_widget = QWidget()

        self.setCentralWidget(self.central_widget)



        self.layout = QVBoxLayout()

        self.central_widget.setLayout(self.layout)



        self.button = QPushButton("Log something")

        self.button.clicked.connect(self.log_something)

        self.layout.addWidget(self.button)



        self.logger = QtLogger()

        self.layout.addWidget(self.logger)



    def log_something(self):

        self.logger.log("This is a log", "info")



app = QApplication([])

window = MainWindow()

window.show()

app.exec()

Metadata

Release files for QtLogger 1.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for QtLogger 1.0.3
File Interpreter ABI Platform Actions
QtLogger-1.0.3-py3-none-any.whl Python 3 none any Details for QtLogger-1.0.3-py3-none-any.whl

Release files / QtLogger-1.0.3-py3-none-any.whl

Download URL QtLogger-1.0.3-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eddad8741a5db26b73838cb7bddf36841c43dc63b2e1d94a6d861b4d72623eb
BLAKE2b-256 checksum
How to use checksums
ff238549aca8f7054ff0efbec19be627bc20c663f5ec64836e0930c8b04b5afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for QtLogger 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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