Skip to main content

A simple function logger for Python

Project description

GGLogger

A function logger for Python

See examples under Examples/Example.py

Supported return types:

  • Int
  • Float
  • String
  • List
  • Dict
  • Tuple
  • Or use combine to combine 2 or more types



Functions

Print Function

RIGHT NOW PRINT ONLY WORKS ON COMBINED FUNCTIONS! Use:

@GG.Print
@GG.Combine (int, str, list)
def Test ():
  if 0:
    return [0]

  elif 1:
    return str (0)

  else:
    return int (0)

# Output result:
# [0]

Log Function

Use:

@GG.Int
@GG.Log ()
def Test ():
    return 1

# Output result:
# ----- Log Result -----
# Executed:           Test
# Result:             1
# Result Type:        str
# Execution Time:     0.0 seconds
# Arg Count:          0
# File Path:          C:\Path\To\File.py
# Start Line:         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

GGLogger-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file GGLogger-1.0.0.tar.gz.

File metadata

  • Download URL: GGLogger-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for GGLogger-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f05c9a439b7b2e297bf3308bc91788f32dfa3cc86339d6533c894cd8bdd83a9f
MD5 ab6b1503fe3499b01cfc8c70c9c08ef3
BLAKE2b-256 886dd2f1596eddfccf35807645655b7f3225ca94875c24da28d15b50b6caa5f7

See more details on using hashes here.

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