Skip to main content

project-logging

Lightweight Python utility for structured logging with automatic log and graph directory management.


Features

  • Simple logging setup with file + console output
  • Automatic creation of log directories
  • Dedicated folder for saving graphs or outputs
  • Clean, reusable API for projects and analysis pipelines

Installation

Install from PyPI:

pip install project-logging

Usage and Configuration

from project_logging import Logger

# Initialize logger with default settings
logger = Logger().setup_logging(log_filename="analysis.log")

# Log messages
logger.info("Starting analysis")
logger.warning("This is a warning")

# Access graph output directory
print(logger.graph_save_path)

# Custom configuration
logger = Logger().setup_logging(
    main_log_folder="_LOGS",
    log_filename="experiment.log",
    log_folder="run_01",
    graphs_folder="plots"
)

Output structure

_LOGS/
    experiment/
        experiment.log
        experiment_graphs/

License

This project is licensed under the MIT License. ``

Metadata

Release files for project-logging 0.1.1

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

Source distribution (sdist)

Source distribution for project-logging 0.1.1
File Size Uploaded Provenance Actions
project_logging-0.1.1.tar.gz 3.4 kB Without provenance Details for project_logging-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for project-logging 0.1.1
File Interpreter ABI Platform Actions
project_logging-0.1.1-py3-none-any.whl Python 3 none any Details for project_logging-0.1.1-py3-none-any.whl

Total release size: 7.4 kB

Release files / project_logging-0.1.1.tar.gz

Download URL project_logging-0.1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f00018511f85d98656d464e76c9106a98b26a00a73d1de2d8fc56f47da69e092
BLAKE2b-256 checksum
How to use checksums
d790f9addab6b70778b3df701fa5223c537c4b60f3765aebd3a9a1645e039cf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / project_logging-0.1.1-py3-none-any.whl

Download URL project_logging-0.1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
164cd57f49f5c6376236815f65e366855ca7e4ad2963cd8b5d6cced53d4683e8
BLAKE2b-256 checksum
How to use checksums
aa946fbdcc32dd435517f3001c0b976774e457e7cf93b3acb979343b2932c3e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for project-logging 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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