Skip to main content

A simple logging library for Python

Project description

Logmaster

A simple logging package for Python


Installation

pip install logmaster

note: this package is not yet on PyPI, so you will have to install it from source. Depending on your python installation, the command mayt vary. For example, if you are using python3, you may need to use pip3 instead of pip.

Usage

from logmaster import Logger

logger = Logger("my_log_file.log")

logger.log("info", "Hello, world!")

Documentation

Logger

Logger(path: str)

Creates a new logger object. The path argument is the path to the log file. If the file does not exist, it will be created. If it does exist, it will be appended to.

Logger.log(level: str, message: str, additional_info: Optional[str])

Logs a message to the log file. The level argument is the level of the message. The message argument is the message to log. The additional_info argument is optional, and is used to provide additional information about the message.

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

logmaster-1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

logmaster-1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file logmaster-1.3.tar.gz.

File metadata

  • Download URL: logmaster-1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for logmaster-1.3.tar.gz
Algorithm Hash digest
SHA256 beccc555f619b81c36bd1bc4172e9e6b853fb4f8fa45d6b47bd49e0adaf1fe15
MD5 fc2c7febd58a388c93cb96699d76b192
BLAKE2b-256 8f7f3695be4461fb8e733de435ac8cc4b2d93bc863878ec718f611108fa75d19

See more details on using hashes here.

File details

Details for the file logmaster-1.3-py3-none-any.whl.

File metadata

  • Download URL: logmaster-1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for logmaster-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3290e772c5494221bd272b802bbae7b9b3baca409a52dfadadf65d1b6c8692f
MD5 8b8c1c7bb24e31ae4aa1abf9ab690b06
BLAKE2b-256 b9fa79e61e155f1324acc3f1898e6214547532ff9a3eb71ad95d648581650207

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page