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.2.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.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylogcat-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1ceab370c8767acf4b708e53c5378cd5061d5c9a7e9791f70bca60e38450d932
MD5 5dea582db8204b8d4cf25316d6dac76d
BLAKE2b-256 6204a730fcbdf4c9bc84e636f63e431c9efba96e5b08453f407fa3fed1dc5448

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylogcat-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 703337c2ad022e64278ad498aa8a7498311de91d34fbbe0ae7c29e4fcff3cf2b
MD5 b5c5ca996e76bd2f700b79e59298342a
BLAKE2b-256 aa6f63367b85e22744e881721084bab7875fdc8cd8b1add955e2f48d0fe64198

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