Skip to main content

A Python Package to view stream of logs

Project description

WebLogs

Weblogs is a python package that gives you capability of streaming logs to the browser. It's a tail -F with UI. Multiple logs from different paths can be added by providing the details in a json file.

Installation

The package can be installed using pip by typing the following-

pip3 install weblogs

Usage

The package uses a json file to get the path and names of multiple Log files. The Json file need not be in the Project directory but it is still recommended to keep it there to prevent accidental deletion. To initilize the package you will be required to provide the full path of the json file. An example json file is given below - example.json

{
    "logs" : [
        {
            "logName" : "Log 1",
            "logPath" : "Log1.log"
        },
        {
            "logName" : "Log 2",
            "logPath" : "log2.log" 
        },
        {
            "logName" : "Log 3",
            "logPath" : "log3.log" 
        }
    ]
}

The Log file needs to be in text editable format.

After installing the package, go the the main directory where you would like to have your project created and then type the following-

weblogsadmin create path/to/json

Screenshot

Main Page

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

weblogs-1.1.8.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weblogs-1.1.8-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file weblogs-1.1.8.tar.gz.

File metadata

  • Download URL: weblogs-1.1.8.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for weblogs-1.1.8.tar.gz
Algorithm Hash digest
SHA256 ff251522f1885de952c348975f1493fee32505867b48b820b4cd22937b4f85dd
MD5 e060ba7ac01c74bd5dd820f0a80f1f6d
BLAKE2b-256 e66a4c7b741400684caf53051ecf0dc37b7b387d630de5f945516b898b2c312d

See more details on using hashes here.

File details

Details for the file weblogs-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: weblogs-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for weblogs-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 654f41a95279813e4194a7cd01020d3032c29cad3269555d581e769afc834784
MD5 a4defa501c0325d49d9205febdd6d1ca
BLAKE2b-256 10b6c79a2971c3697900bde7ced51ae99377ceb460aed2720dae22a54293d88d

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