Skip to main content

Tkinker Logger

Project description

tkinter_colored_logging_handlers

A Tkinter logging handler that supports ANSI colored output.

1693492901002

Installation

pip install tkinter_colored_logging_handlers

Usage

from tkinter_colored_logging_handlers import LoggingHandler
import logging
from tkinter import Tk, Text

root = Tk()
text_widget = Text(root)
text_widget.pack()

logger = logging.getLogger(__name__)
handler = LoggingHandler(text_widget)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

logger.info("This is a test message")
root.mainloop()

Development

Running Tests

pip install pytest
pytest tests/

License

MIT

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

tkinter_colored_logging_handlers-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file tkinter_colored_logging_handlers-0.0.4.tar.gz.

File metadata

File hashes

Hashes for tkinter_colored_logging_handlers-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e15cecadfcb297f28de0bc055e14032d9bd7087e914c2afaa86eeea8238bd622
MD5 ee8052f8f4f3645787efdf4b24a94ac6
BLAKE2b-256 fc1d831cd6d55c48789463fc7c40019c1fa416e162bc47bd6be4a236fbfc4dd7

See more details on using hashes here.

File details

Details for the file tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3e10ff9b48d47bacf0f1ecb3a4a70cf47ba84ca058ca9bb2963494f9c28733
MD5 c6abf4cf7788d6deb230ec81d81a7080
BLAKE2b-256 e4f2ecd1b694a764cfa695a1560222b9a9c1559934146c2ca2895fc65cd9f17d

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