Microsoft Teams logging handler for Python
Project description
Python logging handler for Microsoft Teams web hook integration with simple configuration.
Installation
pip install teams-logger
Example
Simple
import logging
from teams_handler import TeamsHandler
th = TeamsHandler(url='YOUR_WEB_HOOK_URL', level=logging.INFO)
logging.basicConfig(handlers=[sh])
logging.warning('warn message')
Using logger
import logging
from teams_handler import TeamsHandler
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
th = TeamsHandler(url='YOUR_WEB_HOOK_URL', level=logging.INFO)
sh.setLevel(logging.DEBUG)
logger.debug('debug message')
logger.info('info message')
logger.warn('warn message')
logger.error('error message')
logger.critical('critical message')
Project details
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
teams-logger-0.1.3.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for teams_logger-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fb11d3adf511c31d66b8efac1038fad445c0aa3f2552224f4232b2c6de0637b |
|
MD5 | 7527d2352ce9836619df83c1394b004a |
|
BLAKE2b-256 | 4a659f1d516313f018ff3c147c109ba75c0021c08675951ae5ab9ac6cadcc612 |