Skip to main content

Yet Another Logger Documentation Status PyPI License: GPL v3 Code Style

Minimalist logger written in python.

Currently only provides three functions for logging. Also currently log() only supports logging text and dict, whereas for other python objects it logs the type only. Enhancement open in issues.

  1. Method entry logging

  2. Method exit logging

  3. Normal logging

Both Method entry logging and Method exit logging are only INFO level logging by default

Supports 3 levels of logging - INFO, ERROR, DEBUG. These are mutually exclusive (ie not hierarchial)

Supports 2 modes of logging:

  1. FILE - Writes logs to a file in the logs folder

  2. CONSOLE - Logs to the standard output console

Uploaded to PIP - PIP repo.

Log format - [log_level timestamp] [Module name]-[Method name]

Documentation

Hosted on Read The Docs.

Achieved via Sphinx (as the doc build tool), reStructuredText as the markup and hosted on Read The Docs website.

INSTALLATION

run

pip install YALogger

IMAGE

Log file looks like source

alt text

logger.properties looks like so

alt text

REQUIREMENTS

  1. logger.properties file

  2. logs folder

logger.properties file needs to have [logger properties] at the root

SAMPLE USAGE

Logger.initialize_logger(logger_prop_file_path = '.\logger.properties',log_file_path = './logs') 
Logger.perform_method_entry_logging('foo','bar')
Logger.perform_method_exit_logging('foo','bar') 
Logger.log('info', 'foo','bar','this is the log text')

Look for sample usage code in sample folder

Refer to sample logger.properties.

Ensure logs folder is present

License

This is an open source tool licensed under GPL v3.0. Copy of the license can be found here.

Release files for YALogger 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for YALogger 1.3
File Interpreter ABI Platform
YALogger-1.3-py3-none-any.whl Python 3 none any Details

Release files / YALogger-1.3-py3-none-any.whl

Download URL YALogger-1.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa0833f089f7d3cc8cab3236dc86bc15bc75eec641947768781cd36f6340504f
BLAKE2b-256 checksum
How to use checksums
37da3810ae39de331100c335b048b85280b6b2faa14aea4142b0b854a546da77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.3 This release

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.5

1 release file

0.4

2 release files

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page