Skip to main content

A Docker and AWS utility package

Project description

mypackage

A testing package for Digital Kites processes.

Installation

Make sure you have python3 and pip installed.

pip install mohammedPakcage

Usage

import mypackage

obj = {
    app_ip:"x.x.x.x",  // optional 
    app_name:"your pm2 app name",  // optional
    app_id: 1, // pm2 process id (optional)
    date: Math.floor(new Date().setHours(0, 0, 0, 0) / 1000), // your date epoch in seconds
    time: Math.floor(Date.now() / 1000), // your time epoch in seconds
    message: "some message",//your message
    status: "online",
    log_level:"info" //["fatal", "error", "warn","info","debug"]
}

mypackage.printMessage(obj)

How to include in your process:

//Note:Must include this in the first line of your file(which is started with pm2).
//Note:Make sure this snippet runs in production envirnoment.
const dk_logger = require('dk-logger');

dk_logger.setApiKey('YOUR API KEY');

});

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

mohammed_way2-1.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file mohammed_way2-1.0.tar.gz.

File metadata

  • Download URL: mohammed_way2-1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for mohammed_way2-1.0.tar.gz
Algorithm Hash digest
SHA256 670ee83a674ecb6996073d04e414d61fd832630d6febaebf6ba04c473e07a182
MD5 2885f51bccae268fb72cf6f9827470d8
BLAKE2b-256 fd807a455a4cb6cbaf96f1c305bc2b38b78d2efa8353a0b5a7a3727ada5b54f5

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