GithubHelp home page GithubHelp logo

quantumjlbass / unifiedlogger Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 43 KB

UnifiedLogger integrates CLI, GUI, and advanced logging with Loguru, Typer, ttkbootstrap, and tkfontawesome. It offers real-time log viewing, rich logging capabilities, and a user-friendly interface.

License: GNU General Public License v3.0

Python 100.00%

unifiedlogger's Introduction

UnifiedLogger

Description

UnifiedLogger provides a comprehensive and user-friendly logging solution that integrates Command Line Interface (CLI), Graphical User Interface (GUI), and advanced logging functionalities. It leverages popular libraries such as Loguru, Typer, ttkbootstrap, and tkfontawesome to create a versatile and powerful tool suitable for various applications.

Features

  1. Real-Time Log Viewer: Displays log messages in real-time, with auto-scrolling to the latest log entry and user-controlled update speeds.
  2. Rich Logging Capabilities: Utilizes Loguru for advanced logging features, including custom tracebacks, exception handling, and detailed log formatting.
  3. CLI Integration: Incorporates Typer to enable the creation and execution of CLI commands, seamlessly integrating CLI interactions with the logging system.
  4. GUI Enhancements: Utilizes ttkbootstrap and tkfontawesome for modern styling and icons, enhancing readability and user experience.
  5. Copy Functionality: Allows users to copy selected text or all text in the log viewer to the clipboard.
  6. Flexible Initialization: Supports initialization with either or both CLI and GUI interfaces, providing flexibility for different use cases.
  7. Exception Handling and Debugging: Offers detailed exception logging with tracebacks and local variables, aiding in debugging and error analysis.

Usage

The UnifiedLogger class can be easily integrated into various applications, providing a rich and interactive logging experience. Users can view log messages in real-time, control update speeds, copy log messages, and interact with the application through both CLI and GUI interfaces.

log = UnifiedLogger() # Initialize with both CLI and GUI
log.display("This is an informational message.", level="info")
log.run_gui() # Run the GUI event loop if GUI is enabled

Dependencies

  • Loguru
  • Typer
  • ttkbootstrap
  • tkfontawesome

Installation

The package can be installed via pip or by downloading the package files.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.

unifiedlogger's People

Contributors

quantumjlbass avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.