Skip to main content

This package used for logging information and errors.

Project description

AlertNow Python

This package used for logging information or errors.

#Installation pip install AlertNow-Python

#How to use it? First, you need to register with sign-up remote API and get the api key on the site. After, you must initialize connection using set_api_key and you can initialize host, user and tags data using set_host, set_user, set_tag method. And you can use info or error methods.

#Example

from logger.src.logger import set_host, set_api_key, set_user, set_tag, info, error
from logger.src.common.dto.user import User
from logger.src.common.dto.userGeo import UserGeo
import jsonpickle

def execute_method():
    set_host('http://localhost:8080')
    set_api_key('b4984c8de7f14b2f86f8e036456fd60c')
    set_tag('os.name', 'python OS')
    set_user(User(
        "13213231",
        "111.11.1.11",
        UserGeo(
            "1044",
            "Baku",
            "Gadabay"
        )
    ))

    response = info('hi from python env')
    print(response.status_code)
    print(jsonpickle.encode(response))

execute_method()

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

alertnow-python-1.3.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file alertnow-python-1.3.3.tar.gz.

File metadata

  • Download URL: alertnow-python-1.3.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for alertnow-python-1.3.3.tar.gz
Algorithm Hash digest
SHA256 890e836a06e019b12f6bd8d65cb7bfeb0b1c3a17a669dbacfad3fc950af46d8c
MD5 09809e27ec30c45ce4b44dc8673d3715
BLAKE2b-256 adfa88587bea2a9d799e37092c694be7b2bd297cdf4c08409f4b66a7b80f4938

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