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
Import the package from nightwatch import Nightwatch
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
File details
Details for the file nightwatch-1.0.0.tar.gz.
File metadata
- Download URL: nightwatch-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f16761458a442bb7c4d98a2632bf04e3e1a576ba9a9dabde5c1fa9c0a2edbef
|
|
| MD5 |
97faa35496174967237766d0ead5ea88
|
|
| BLAKE2b-256 |
6eccb646b97c846d9426ff7a6e0248ad0cd53a9eb969fc0ea5b739390cdbb35f
|