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: [email protected]",
        Icon: "šŸŽ‰",
        Tags: &gologsnag.Tags{
            "email": "[email protected]",
            "user-id": "uid-12",
        },
        Notify: true,
    },
)

GitHub

View Github