Skip to main content

A logger python project

 ,-----------------------------------------------------------------v
 u           ,-~~\   <~)_   u\             /\    ,-.       ,-.     u
 u  _,===-.,  (   \   ( v~\ u u  _,===-.,  \/   <,- \_____/  `     u
 u (______,.   u\. \   \_/'  \u (______,. /__\    /  ___. \  -===- u
 u            _a_a`\\  /\     u           \--/ ,_(__/ ,_(__\       u
 `--------------------------------------------- By CenturyBoys ----y

This is a non block JSON logger that use python's default logger with a thread executor.

By default loglifos set the default root loger to ERROR level

Settings

You can change loglifos log level using set_config method. Loglifos use the same level constants as the default logging python lib.

import loglifos

loglifos.set_config(loglifos.ERROR)

Using

import loglifos

try:
    a = 1 / 0 
except Exception as e:
    loglifos.debug("Message from debug", "some args", 1, some__kwargs="Kwargs of debug")
    loglifos.info("Message from info", "some args", 1, some__kwargs="Kwargs of info")
    loglifos.warning("Message from warning", "some args", 1, some__kwargs="Kwargs of warning")
    loglifos.error("Message from error", "some args", 1, some__kwargs="Kwargs of error", exception=e)
    loglifos.critical("Message from critical", "some args", 1, some__kwargs="Kwargs of critical")
{"time": "2023-01-25 13:27:34.896765", "level": "ERROR", "file": "/home/marco/.config/JetBrains/PyCharmCE2022.3/scratche
  s/scratch_1.py", "function": "<module>", "msg": "Message from error", "some__kwargs": "'Kwargs of error'", "args": "('
  some args', 1)", "error": "Traceback (most recent call last):\n  File \"/home/marco/.config/JetBrains/PyCharmCE2022.3/
  scratches/scratch_1.py\", line 9, in <module>\n    a = 1 / 0\nZeroDivisionError: division by zero\n"}
{"time": "2023-01-25 13:27:34.899420", "level": "DEBUG", "file": "/home/marco/.config/JetBrains/PyCharmCE2022.3/scratche
  s/scratch_1.py", "function": "<module>", "msg": "Message from debug", "some__kwargs": "'Kwargs of debug'", "args": "('
  some args', 1)"}
{"time": "2023-01-25 13:27:34.899676", "level": "INFO", "file": "/home/marco/.config/JetBrains/PyCharmCE2022.3/scratches
  /scratch_1.py", "function": "<module>", "msg": "Message from info", "some__kwargs": "'Kwargs of info'", "args": "('som
  e args', 1)"}
{"time": "2023-01-25 13:27:34.899885", "level": "WARNING", "file": "/home/marco/.config/JetBrains/PyCharmCE2022.3/scratc
  hes/scratch_1.py", "function": "<module>", "msg": "Message from warning", "some__kwargs": "'Kwargs of warning'", "args
  ": "('some args', 1)"}
{"time": "2023-01-25 13:27:34.900066", "level": "CRITICAL", "file": "/home/marco/.config/JetBrains/PyCharmCE2022.3/scrat
  ches/scratch_1.py", "function": "<module>", "msg": "Message from critical", "some__kwargs": "'Kwargs of critical'", "a
  rgs": "('some args', 1)"}

Metadata

Release files for loglifos 0.3.0

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

Source distribution (sdist)

Source distribution for loglifos 0.3.0
File Size Uploaded Provenance
loglifos-0.3.0.tar.gz 8.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / loglifos-0.3.0.tar.gz

Download URL loglifos-0.3.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f2c4da1f237d0ded8e31d868ed8097bf756780f0b36a832678a4ec42c13e0329
BLAKE2b-256 checksum
How to use checksums
57aeea621ee3fad27cda3296f02c4ddcc39b0b547750370e889346bfdcaa6491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release files / loglifos-0.3.0-py3-none-any.whl

Download URL loglifos-0.3.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcc82252b213b50f8b0b6dc4d8f421b2e87bf05a5d18c688adff6644517e4801
BLAKE2b-256 checksum
How to use checksums
fd3f5927955cf7e6a95e32b27610cf922369eca9b97364984dfb5971725708c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Security for loglifos 0.3.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for loglifos-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

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