{"repo":"chinnichaitanya/python-slack-logger","free":true,"listed":false,"github":"https://github.com/chinnichaitanya/python-slack-logger","clone":"git clone https://github.com/chinnichaitanya/python-slack-logger.git","description":"🚀 Send custom messages to Slack to notify about application status, progress, errors, health checks etc.","language":"Python","stars":13,"topics":["slack","slack-api","logging","python","python-slack-logger","messaging","health-check","notification","notification-service","monitoring"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Python Slack Logger A custom message logger to Slack for Python 3. This project was built using slackclient and the latest Block Kit UI. This is the Slack alternative to discord-logger package for Discord. Install Install via pip: pip install python-slack-logger Basic Usage Configure various options There are numerous configurations available to customise the message. Emojis inbuilt! 😃 An appropriate emoji is automatically added before the title depending on the level . Following is the map between level and the emoji added. - default = :mega: 📣 - error = :x: ❌ - warn = :warning: ⚠️ - info = :bell: 🔔 - verbose = :loud sound: 🔊 - debug = :microscope: 🔬 - success = :rocket: 🚀 Examples Set Service Name and Environment for easy identification You can configure the log message with service name and environment for easy identification. The Host field which is the hostname of the server is automatically added for every message. You can even send any meta information like the data in the variables, module names, metrics etc with the metadata field while constructing the message. These data should be passed as a dictionary. Send messages without Hostname In case you do not want the hostname to be displayed in the message, disable it by setting \"display hostname\": False in the options as follows. Send messages with different log-levels The log-level indicates the importance of the message. It changes the color of the Slack message in particular. Currently supported levels are, - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/chinnichaitanya","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chinnichaitanya/python-slack-logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}