Skip to main content

Cartorio: A library for logging

Project description

1. Cartorio

A wrapper on the logging module for Python that provides a simple and easy to use interface for logging.

2. Contents

3. Installation

pip install cartorio

4. Usage

Example:

import sys
from pathlib import Path

from cartorio import fun, log

# Test instantiation of log file
logger = log(filename=Path(__file__).resolve().stem, logs_path=Path(__file__).resolve().parent)

@fun
def multiply(num1, num2):
    return num1 * num2

# Test if entry and exit log messages are correct
multiply(10, 1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cartorio-2.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

cartorio-2.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page