Skip to content

khairulTonu/go-log-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-log-slack

A go package that will automatically send the messages to the desired slack channel.

Running Example

package main

import (
	"errors"
	"go-log-slack/logger"
)

func main() {
	webhookUrl := "webhook url"
	service := "service name"
	logger.SetSlackLogger(webhookUrl, service)
	e := errors.New("custom error")
	logger.Error("Error occurred ", e, nil)
}

To run tests, run the following command

  go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages