Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Forward log message to Slack with emojis and mentions.

NotificationsYou must be signed in to change notification settings

licenseware/licenseware-logblocks

Repository files navigation

Installation

pip install licenseware-logblocks

How it works?

Having a log stream, you can read line by line and send it to logblocks:

log_stream() {whiletrue;doecho$RANDOM; sleep 1;done; }while IFS=read -r line;doecho$line| logblocks$line;done<<(log_stream)

SLACK_TAGGED_USERS_IDS will be tagged on all ERRORS

Requirements

Environment variables:

  • SLACK_TAGGED_USERS_IDS (ex:export SLACK_TAGGED_USERS_IDS="<@U02CS9QL0JK>, <@U02U2KQ7N3Y>, <@U030JAJF5RV>, <@U02SDCAHJH3>, <@UHW04RBGT>");
  • SLACK_CHANNEL_WEBHOOK_URL (ex:export SLACK_CHANNEL_WEBHOOK_URL=https://hooks.slack.com/services/etc/etc/etc)

Packages

 
 
 

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp