log-everywhere 0.0.1
pip install log-everywhere
Released:
Logging package to enable writing all program information with corresponding datetime to multiple, DIFFERENT files safely when running multiple threads (multi-threading).
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Free for non-commercial use, Apache Software License (Apache License 2.0)
- Author: Shail-Shouryya
- Tags logging, logger, threading, multi-threading, datetime, time, archiving, tracing, debugging, tracer, debugger, automation, csv, txt, markdown, md, YouTube, videos, URL, scraping, Selenium, macos, windows, linux
- Requires: Python >=3.6.*, <4
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
-
Topic
- Communications
- Communications :: BBS
- Communications :: Chat
- Communications :: Chat :: Unix Talk
- Communications :: Conferencing
- Communications :: Email
- Communications :: File Sharing
- Database
- Database :: Front-Ends
- Documentation
- Education :: Testing
- Home Automation
- Internet
- Internet :: File Transfer Protocol (FTP)
- Internet :: Finger
- Internet :: Log Analysis
- Internet :: Name Service (DNS)
- Internet :: Proxy Servers
- Internet :: WWW/HTTP
- Internet :: WWW/HTTP :: Browsers
- Internet :: WWW/HTTP :: Dynamic Content
- Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
- Internet :: WWW/HTTP :: Dynamic Content :: Content Management System
- Internet :: WWW/HTTP :: Dynamic Content :: Message Boards
- Internet :: WWW/HTTP :: Dynamic Content :: News/Diary
- Internet :: WWW/HTTP :: Dynamic Content :: Page Counters
- Internet :: WWW/HTTP :: HTTP Servers
- Internet :: WWW/HTTP :: Indexing/Search
- Internet :: WWW/HTTP :: Session
- Internet :: WWW/HTTP :: Site Management
- Internet :: WWW/HTTP :: Site Management :: Link Checking
- Internet :: WWW/HTTP :: WSGI :: Middleware
- Multimedia
- Multimedia :: Graphics :: 3D Modeling
- Multimedia :: Graphics :: 3D Rendering
- Multimedia :: Graphics :: Capture
- Multimedia :: Graphics :: Capture :: Digital Camera
- Multimedia :: Graphics :: Capture :: Scanners
- Multimedia :: Graphics :: Capture :: Screen Capture
- Multimedia :: Graphics :: Presentation
- Multimedia :: Graphics :: Viewers
- Multimedia :: Sound/Audio
- Multimedia :: Sound/Audio :: Analysis
- Multimedia :: Sound/Audio :: Capture/Recording
- Multimedia :: Sound/Audio :: Conversion
- Multimedia :: Sound/Audio :: Sound Synthesis
- Multimedia :: Sound/Audio :: Speech
- Multimedia :: Video :: Capture
- Office/Business
- Office/Business :: Financial
- Office/Business :: Financial :: Accounting
- Office/Business :: Financial :: Investment
- Office/Business :: Financial :: Point-Of-Sale
- Office/Business :: Financial :: Spreadsheet
- Office/Business :: Groupware
- Office/Business :: News/Diary
- Office/Business :: Scheduling
- Printing
- Scientific/Engineering
- Scientific/Engineering :: Information Analysis
- Software Development
- Software Development :: Bug Tracking
- Software Development :: Build Tools
- Software Development :: Debuggers
- Software Development :: Documentation
- Software Development :: Internationalization
- Software Development :: Libraries
- Software Development :: Libraries :: Application Frameworks
- Software Development :: Libraries :: Python Modules
- Software Development :: Localization
- Software Development :: Quality Assurance
- Software Development :: Testing
- Software Development :: Testing :: Acceptance
- Software Development :: Testing :: Mocking
- Software Development :: Testing :: Traffic Generation
- Software Development :: Testing :: Unit
- Software Development :: Version Control :: Git
- System
- System :: Archiving
- System :: Archiving :: Backup
- System :: Benchmark
- System :: Boot
- System :: Distributed Computing
- System :: Filesystems
- System :: Hardware :: Symmetric Multi-processing
- System :: Installation/Setup
- System :: Logging
- System :: Monitoring
- System :: Networking
- System :: Networking :: Firewalls
- System :: Networking :: Monitoring
- System :: Networking :: Monitoring :: Hardware Watchdog
- System :: Networking :: Time Synchronization
- System :: Operating System
- System :: Recovery Tools
- System :: Shells
- System :: Software Distribution
- System :: System Shells
- System :: Systems Administration
- Text Editors :: Documentation
- Text Editors :: Text Processing
- Text Editors :: Word Processors
- Text Processing
- Text Processing :: Filters
- Text Processing :: Fonts
- Text Processing :: General
- Text Processing :: Indexing
- Text Processing :: Linguistic
- Text Processing :: Markup
- Text Processing :: Markup :: HTML
- Utilities
Project description
log-everywhere Python API
Installing the package
Enter the following in your command line:
# if something isn't working properly, try rerunning this
# the problem may have been fixed with a newer version
pip3 install -U log-everywhere # MacOS/Linux
pip install -U log-everywhere # Windows
Using the log-everywhere
package
python3 # MacOS/Linux
python # Windows
from log_everywhere import yield_logger
from log_everywhere import log
def do_important_things(log_locations):
num = 1 + 1
log(f'This function calculated num to be: {num}', log_locations)
product = num * 2
log(f'This function calculated the product of num multiplied by 2 to be: {product}', log_locations)
log( 'This function is now closing...', log_locations)
def main():
with yield_logger('name_of_my_log_file', log_silently=False) as log_locations:
do_important_things(log_locations)
main()
To see why Python Standard Library's logging module was insufficient and creating a custom logger was necessary, see this modification in the yt_videos_list
package. NOTE that the exact implementation differed slighlty in this commit (yield_logger()
was named yield_file_writer()
), and support for logging to both the console AND the log file wasn't added until this commit
Direct link to commits:
- Simplify logging via custom context manager text writer
- Always log to log file but allow console logging muting
To see more interesting logging modifications, see the significantly improves logging section nested within the details section of the yt_videos_list
package 0.5.0 Release page!
Seeing all available functions for the log-everywhere
package
python3 # MacOS/Linux
python # Windows
import log_everywhere
help(log_everywhere.logger)
# OR
from log_everywhere import logger
help(logger)
# SEEING PACKAGE METADATA
import log_everywhere
help(log_everywhere)
Usage Statistics
If you found this interesting or useful, please consider starring this repo on GitHub so other people can more easily find and use this. Thanks!
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Free for non-commercial use, Apache Software License (Apache License 2.0)
- Author: Shail-Shouryya
- Tags logging, logger, threading, multi-threading, datetime, time, archiving, tracing, debugging, tracer, debugger, automation, csv, txt, markdown, md, YouTube, videos, URL, scraping, Selenium, macos, windows, linux
- Requires: Python >=3.6.*, <4
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
-
Topic
- Communications
- Communications :: BBS
- Communications :: Chat
- Communications :: Chat :: Unix Talk
- Communications :: Conferencing
- Communications :: Email
- Communications :: File Sharing
- Database
- Database :: Front-Ends
- Documentation
- Education :: Testing
- Home Automation
- Internet
- Internet :: File Transfer Protocol (FTP)
- Internet :: Finger
- Internet :: Log Analysis
- Internet :: Name Service (DNS)
- Internet :: Proxy Servers
- Internet :: WWW/HTTP
- Internet :: WWW/HTTP :: Browsers
- Internet :: WWW/HTTP :: Dynamic Content
- Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
- Internet :: WWW/HTTP :: Dynamic Content :: Content Management System
- Internet :: WWW/HTTP :: Dynamic Content :: Message Boards
- Internet :: WWW/HTTP :: Dynamic Content :: News/Diary
- Internet :: WWW/HTTP :: Dynamic Content :: Page Counters
- Internet :: WWW/HTTP :: HTTP Servers
- Internet :: WWW/HTTP :: Indexing/Search
- Internet :: WWW/HTTP :: Session
- Internet :: WWW/HTTP :: Site Management
- Internet :: WWW/HTTP :: Site Management :: Link Checking
- Internet :: WWW/HTTP :: WSGI :: Middleware
- Multimedia
- Multimedia :: Graphics :: 3D Modeling
- Multimedia :: Graphics :: 3D Rendering
- Multimedia :: Graphics :: Capture
- Multimedia :: Graphics :: Capture :: Digital Camera
- Multimedia :: Graphics :: Capture :: Scanners
- Multimedia :: Graphics :: Capture :: Screen Capture
- Multimedia :: Graphics :: Presentation
- Multimedia :: Graphics :: Viewers
- Multimedia :: Sound/Audio
- Multimedia :: Sound/Audio :: Analysis
- Multimedia :: Sound/Audio :: Capture/Recording
- Multimedia :: Sound/Audio :: Conversion
- Multimedia :: Sound/Audio :: Sound Synthesis
- Multimedia :: Sound/Audio :: Speech
- Multimedia :: Video :: Capture
- Office/Business
- Office/Business :: Financial
- Office/Business :: Financial :: Accounting
- Office/Business :: Financial :: Investment
- Office/Business :: Financial :: Point-Of-Sale
- Office/Business :: Financial :: Spreadsheet
- Office/Business :: Groupware
- Office/Business :: News/Diary
- Office/Business :: Scheduling
- Printing
- Scientific/Engineering
- Scientific/Engineering :: Information Analysis
- Software Development
- Software Development :: Bug Tracking
- Software Development :: Build Tools
- Software Development :: Debuggers
- Software Development :: Documentation
- Software Development :: Internationalization
- Software Development :: Libraries
- Software Development :: Libraries :: Application Frameworks
- Software Development :: Libraries :: Python Modules
- Software Development :: Localization
- Software Development :: Quality Assurance
- Software Development :: Testing
- Software Development :: Testing :: Acceptance
- Software Development :: Testing :: Mocking
- Software Development :: Testing :: Traffic Generation
- Software Development :: Testing :: Unit
- Software Development :: Version Control :: Git
- System
- System :: Archiving
- System :: Archiving :: Backup
- System :: Benchmark
- System :: Boot
- System :: Distributed Computing
- System :: Filesystems
- System :: Hardware :: Symmetric Multi-processing
- System :: Installation/Setup
- System :: Logging
- System :: Monitoring
- System :: Networking
- System :: Networking :: Firewalls
- System :: Networking :: Monitoring
- System :: Networking :: Monitoring :: Hardware Watchdog
- System :: Networking :: Time Synchronization
- System :: Operating System
- System :: Recovery Tools
- System :: Shells
- System :: Software Distribution
- System :: System Shells
- System :: Systems Administration
- Text Editors :: Documentation
- Text Editors :: Text Processing
- Text Editors :: Word Processors
- Text Processing
- Text Processing :: Filters
- Text Processing :: Fonts
- Text Processing :: General
- Text Processing :: Indexing
- Text Processing :: Linguistic
- Text Processing :: Markup
- Text Processing :: Markup :: HTML
- Utilities
Release history Release notifications | RSS feed
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 log_everywhere-0.0.1.tar.gz
.
File metadata
- Download URL: log_everywhere-0.0.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9bb1c8d14f1ecfe38c50316cf7a784be0d8c64e70657328d98b0b208d7337c |
|
MD5 | beb56bf04e17a00a75fa8ede32cf94c5 |
|
BLAKE2b-256 | 69b5a86c1248682573419ff05a644a884dcf62fa109d87d5d5ce842142b68527 |