Skip to main content

An application log system similar to Android Logcat for Python

Project description

PyLogcat

PyLogcat is an application log system similar to Android Logcat for Python.

PyLogcat currently supports the following log levels.

  • Error : Critical messages which can cause application malfunction
  • Warning : Priority messages which indicate the potential problem in application
  • Information : Proirity messages which help users tracing application execution
  • Verbose : Debug messages which help developers debugging application under development

How To

Install package

pip install pylogcat

Import modules

from pylogcat import Log, Level

Log module privodes main functions for application log.

Level enumerates supported log levels as v, i, w, and e for verbose, informatin, warning, and error messages.

Setup log level

Log level is set as verbose which means all messages will be shown. Users can set log level as error, warning, information, or verbose as required. For example, users can set log level as information by adding the following line of code

Log.level = Level.i

Create log message

Verbose log message

Log messages will be shown only if log level is set as v.

Log.v(tag, message)

Information log message

Log messages will be shown only if log level is set as v or i.

Log.i(tag, message)

Warning log message

Log messages will be shown only if log level is set as v, i, or w.

Log.w(tag, message)

Error log message

Log messages will be shown no matter what log level is set.

Log.e(tag, message)

Limitations

PyLogcat can only print log messages on console now.

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

pylogcat-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

pylogcat-0.0.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pylogcat-0.0.3.tar.gz.

File metadata

  • Download URL: pylogcat-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pylogcat-0.0.3.tar.gz
Algorithm Hash digest
SHA256 10ace16901e295bddb3ac93d124fe7bbed35dabcb0104fe47ca5be1bafae4ca9
MD5 d4582301e32333330411cc5d6b5b2e97
BLAKE2b-256 b9f98db7022e421a81475d64836556ce31bfc72a14eb47116963c03fe644c523

See more details on using hashes here.

File details

Details for the file pylogcat-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pylogcat-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pylogcat-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f4eae327215ca1eadce6081eaa60ef14e8390dc42b18b4182be4c77493701803
MD5 a5d39b85d5ff869b3765cadb268cf3ba
BLAKE2b-256 a6ba94ff1c2f72e16122dc0befcab5012400813a58aaf0666b7dacc622533568

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