Skip to main content

Logging

Project description

Nightwatch Logger is a Python package that offers a versatile logging utility for Python applications. It simplifies log management by providing features for both file and console output. You can use this package to improve your application’s logging capabilities with ease.

Features

  • Log messages to files and optionally to the console.

  • Supports various log levels: DEBUG, INFO, WARNING, ERROR, and CRITICAL.

  • Customize log file names and log levels according to your application’s needs.

  • Properly formats log entries with timestamps and log levels for clarity.

  • Handles structured logging with dynamic data, including dictionaries, lists, strings, integers, floats, booleans, and None.

  • Exception handling to gracefully manage errors during logging and message formatting.

Usage

  1. Import the package from nightwatch import Nightwatch

  2. Create an instance of the Nightwatch class nightwatch = Nightwatch(log_file_name=’app.log’, log_level=logging.INFO)

License

This project is licensed under the MIT License.

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

nightwatch-1.0.5.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file nightwatch-1.0.5.tar.gz.

File metadata

  • Download URL: nightwatch-1.0.5.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for nightwatch-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b13b928b9a10dbdba8d9fff418e07258b71f5297c7f86bc9f107dd7d6093105d
MD5 dbf37bef6b8453ccb547031a2e1ceb56
BLAKE2b-256 66ac76eb55014ab57e51ad2f61a05d9b9a379d18a8885e9344392b7b8ed17eb3

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