Skip to main content

aklogger

Keep track of all the events happening in your project: A generic logging package for python projects.

[Features]

  • Logging to console
  • Logging to file
  • Push logs to slack

Installation

$ pip install aklogger

Usage

Following script will log messages to slack, file and console:

from aklogger import logger

logger.set_name('mycroft')
logger.setLevel('DEBUG')

# This will log to console
logger.info('Some Dummy log', 'Some dummy details of the dummy log')

# Enable File log
logger.log_to_file('file.log')

# This will log to file and console
logger.info('Some Dummy log', 'Some dummy details of the dummy log')

# Enable Slack
logger.enable_slack(SLACK_TOKEN)

# Set slack level
logger.set_slack_level('WARNING')

# Now the logs will be log to slack
logger.warning('Some Dummy log', 'Some dummy details of the dummy log')

# You can also do a force push to slack no matter what the slack level is set.
logger.info('Dummy log', 'Details of the dummy log', force_push_slack=True)

See python logging docs for more uses.

Release files for aklogger 0.2.2

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

Source distribution (sdist)

Source distribution for aklogger 0.2.2
File Size Uploaded
aklogger-0.2.2.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / aklogger-0.2.2.tar.gz

Download URL aklogger-0.2.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
02b1e3a3e9cf5a38ca7ae0b9f0fb33ce3225218191b01b3223685a62de4c8652
BLAKE2b-256 checksum
How to use checksums
0c21f212b53965efa009010a74b442c3c0a14346608c3a805f939e77a8cd9099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/21.5.0

Release files / aklogger-0.2.2-py3-none-any.whl

Download URL aklogger-0.2.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2961ca8aa29c2db5aa0f43062088c885358f395ce97b1a11a5ecb2bf463fb2a3
BLAKE2b-256 checksum
How to use checksums
1cfb71c01464cd0f98f9fd91c34129ee9cf3d051ad68886ba73ba6c0c3ed4e55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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