https://github.com/albertnieto/qcml-logging

A Python library for advanced logging with support for multiple outputs and Slack integration. Designed for QCML.

https://github.com/albertnieto/qcml-logging

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.3%) to scientific vocabulary

Keywords

logging-library python slack
Last synced: 5 months ago · JSON representation

Repository

A Python library for advanced logging with support for multiple outputs and Slack integration. Designed for QCML.

Basic Info
  • Host: GitHub
  • Owner: albertnieto
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 27.3 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
logging-library python slack
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

QCML Logging Library

QCML Logging is a Python library that provides advanced logging setup with support for multiple outputs (terminal, file) and Slack integration. It includes features like color-coded logs, JSON formatting, and contextual information.

Installation

You can install the library using pip:

bash pip install qcml-logging

Usage

Here’s an example of how to set up logging:

```python import qcml_logging

contextinfo = { 'userid': '12345', 'session_id': 'abcde' }

slack_credentials = ["your-slack-token", "#your-channel"]

qcmllogging.logsetup( level="DEBUG", output="both", logspath="mylogs", usejson=False, keywordfilters=["error", "critical"], usecolor=True, asynchronous=True, addcontext=True, contextinfo=contextinfo, slacknotify=True, slackcredentials=slack_credentials )

logging.debug("This is a debug message.") ```

Owner

  • Name: Albert
  • Login: albertnieto
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 8
  • Total Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Albert a****0@g****m 8

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/python-package.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v3 composite
pyproject.toml pypi
setup.py pypi