Send log messages from Servoy to Slack using the SlackAppend

Share business templates, ideas, experiences, etc with fellow Servoy developers here

Send log messages from Servoy to Slack using the SlackAppend

Postby pbakker » Fri May 20, 2016 10:59 am

Hi,

If you weren't at ServoyCamp '16, we'd like to make you aware of the ability to forward log messages from Servoy to[url=slack.com]Slack[/url] using the SlackAppender.

This free and open source 'appender' for the log mechanism used by Servoy allows you to forward logmessages written to the Servoy log file to a channel in Slack.You control which log messages get send to which channel, so you could use it to forward only errors or both errors and warnings to Slack.

One of the use-cases for this might be a staging server where your UAT team test a release before putting it in production. If any errors are produced during the testing, you'd get notified of that through Slack directly, without having to check the logs.

This is not something we consider to fully replace proper monitoring of Servoy Application Servers, but is a nifty little extra on your belt of tools to make your life a little easier.

We'd welcome your feedback1

Paul
The Orange dots
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Send log messages from Servoy to Slack using the SlackAp

Postby jasantana » Sat May 21, 2016 4:12 pm

Thanks Paul. Great contribution!!
Best regards,
Juan Antonio Santana Medina
jasantana@nephos-solutions.co.uk
Servoy MVP 2015
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 555
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: Send log messages from Servoy to Slack using the SlackAp

Postby Gordon McLean » Sun May 22, 2016 8:49 am

jasantana wrote:Thanks Paul. Great contribution!!


+1
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Send log messages from Servoy to Slack using the SlackAp

Postby Gordon McLean » Wed Jun 22, 2016 3:33 pm

Sending messages to Slack using the Servoy log is a great tool and I strongly recommend any developers who are not using this to look again.

Don't limit yourself to the log appender either as Slack is a brilliant notification service that can be used anywhere within a Servoy solution. As an example you could use it to notify users when Orders are received, or to send messages out of hours using the headless client, the possibilities are endless and its free.

To set this up you need to register for an API key with Slack, create an http post and send your message to a specific channel along with an optional icon. A great, free notification resource that is super versatile.

Thanks again Paul - nice job !!
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK


Return to Sharing Central

Who is online

Users browsing this forum: No registered users and 3 guests

cron