Liplog
A simple Python logging package that writes a log file next to your script while also printing messages to the console.
Language
Features
- Log folder and timestamped log file are created automatically on the first log entry
- Colored console output in real time
- Custom levels
RUNandSUCCESS - No changes to the root logger, so your own
loggingsetup stays untouched
Requirements
- Python 3.9 or newer
Installation
Install from PyPI:
python -m pip install liplog
Install directly from GitHub:
python -m pip install git+https://github.com/R0g3rT/liplog.git
Update:
python -m pip install --upgrade liplog
Uninstall:
python -m pip uninstall liplog
Usage
from liplog import write_log
write_log("Script started", "RUN")
write_log("Ticket loaded") # default level: INFO
write_log("Important warning", "WARNING")
write_log("An error occurred", "ERROR")
write_log("Done", "SUCCESS")
Sample output:
[2026-09-14 12:00:00] [RUN] Script started
[2026-09-14 12:00:00] [INFO] Ticket loaded
[2026-09-14 12:00:01] [WARNING] Important warning
[2026-09-14 12:00:02] [ERROR] An error occurred
[2026-09-14 12:00:03] [SUCCESS] Done
Custom log file name (optional, call before the first write_log):
from liplog import setup_logging, write_log
log_file = setup_logging("monthly-report")
write_log(f"Logging to {log_file}")
Supported Log Levels
| Level | Console color |
|---|---|
RUN |
blue |
INFO |
default |
SUCCESS |
green |
WARNING |
yellow |
ERROR |
red |
CRITICAL |
magenta |
Levels are case-insensitive. An unknown level (e.g. a typo) raises a ValueError.
Note
The log file is saved in a logs folder next to the script that was executed, named <script>-YYYY-MM-DD_HH-MM.log.
Changes in 0.2.0
- Nothing is created on import; folder and file are created on the first log entry
RUNandSUCCESSare real log levels (15 and 25)- Unknown levels raise
ValueErrorinstead of being logged asINFO setup_loggingis exported;retriesanddelay_mswere removed fromwrite_log- Requires Python 3.9 or newer
Metadata
Release files for liplog 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| liplog-0.2.0.tar.gz | 4.5 kB | With provenance | Details for liplog-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liplog-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for liplog-0.2.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / liplog-0.2.0.tar.gz
| Download URL | liplog-0.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6839298b7e3c3bf98725bf5fff1d4323eb5a1986844ff185017be3cbdfe91b80
|
|
BLAKE2b-256 checksum How to use checksums |
da16e81ebf628e049d2cc968878e630dbaf57df127c6a0ec62c9b44e5ef749b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 3, 2026.
Transparency logRelease files / liplog-0.2.0-py3-none-any.whl
| Download URL | liplog-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5a143fa84fae778123f454f35dfa778ecbe3e1be6b280a09e133ac70f037294
|
|
BLAKE2b-256 checksum How to use checksums |
4bb6740485d9e79fc3dfa6f06aa60e531859e6fc05125c40e7ca1a491ed3ff27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 3, 2026.
Transparency logSecurity for liplog 0.2.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.
Attestation for liplog-0.2.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 Nov 3, 2026.
Transparency logA 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.