Skip to content

salfatigroup/gologsnag

Repository files navigation

LogSnag

LogSnag

Get notifications and track your project events. This package is maintained by the salfati.group and @elonsalfati

Discord Documentation

Installation

go get -u github.com/salfatigroup/gologsnag

Usage

Import Library

import "github.com/salfatigroup/gologsnag"

Initialize Client

logsnag := gologsnag.NewLogSnag("7f568d735724351757637b1dbf108e5", "my-saas")

Publish Event

logsnag.Publish(
    context.Background(),
    &gologsnag.PublishOptions{
        Channel: "waitlist",
        Event: "User Joined",
        Description: "Email: john@doe.com",
        Icon: "🎉",
        Tags: &gologsnag.Tags{
            "email": "john@doe.com",
            "user-id": "uid-12",
        },
        Notify: true,
    },
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages