Skip to main content

No project description provided

Project description

Log N Write

Log function executions and variables. Output to stdout.

Example

Use log_function decorator to log functions and log_variable to log values.

from lognwrite.log_to_out import LogToOut

@LogToOut.log_function
def addition(a, b):
    LogToOut.log_variable(a, "a")
    LogToOut.log_variable(b, "b")
    return a + b

addition(3, 50)

Executing the example will output:

malifpy@malifpy:~$ python main.py
+ addition( 3, 50 )
  a = 3
  b = 50
- addition -> 53

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

lognwrite-0.1.3.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file lognwrite-0.1.3.tar.gz.

File metadata

  • Download URL: lognwrite-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for lognwrite-0.1.3.tar.gz
Algorithm Hash digest
SHA256 151cdbda497c96752e1b679a7a6f0ad1d3cfb213c001d19bd3eac88516faaf04
MD5 70184dc8ee157a847c59bc7f6275bf48
BLAKE2b-256 918aa5e7a2985c6e050a4b021c1165f67782b556d13aaf36f576315197129cfe

See more details on using hashes here.

Supported by

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