Skip to main content

A simple logging.txt library

Project description

Text File Generation Module

This Python module provides a simple logging functionality, allowing users to generate text log files.

Usage

Once installed, you can import the module into your Python script like this:

from log import log_message

log_message("logFile", "error", "this is a test message")

Additional Examples:

  1. Logging an informational message:

    log_message("logFile", "info", "this is an informational message")
    
  2. Logging a warning message:

    log_message("logFile", "warning", "this is a warning message")
    
  3. Logging a debug message:

    log_message("logFile", "debug", "this is a debug message")
    
  4. Logging a critical message:

    log_message("logFile", "critical", "this is a critical message")
    

Cornelius Vincent @MIT @author

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

simply-log-0.2.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

simply_log-0.2.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file simply-log-0.2.2.tar.gz.

File metadata

  • Download URL: simply-log-0.2.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for simply-log-0.2.2.tar.gz
Algorithm Hash digest
SHA256 25683ed2efa30067f17311511bfbc91ea376e9b84ebaccd22800ec204a983d7f
MD5 5e6540a114a0d181e8bbdea867828e63
BLAKE2b-256 94cf262fbf06b6e0927a5cea5ddc08c0b58dcc4636526939fa94fe265fb464aa

See more details on using hashes here.

File details

Details for the file simply_log-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: simply_log-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for simply_log-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8817a51ae93e9940b8cee4c1d16e148369d5133f79740118defe667243a5b93
MD5 6706f638295877f29ba84e8f2582b848
BLAKE2b-256 c353b00c846df82f78774ba80b3cd577ebc948ad06f1e6ae85544af21eeb5620

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