Skip to content

c1982/lpusherlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogPusher: Log tracking for Go

LogPusher is a system that allows you to receive notifications through your mobile on a single application. Apart from push notifications, you can also receive information without a mobile client via SMS and Mail service. You can integrate with any software through the API. Thanks to rapid API integration, you do not spend extra time for information and mail service.

LogPusher is easy to use on the client side thanks to its simple interface. Just generate API key trough our control panel and you are ready to go.

Getting started

  1. Create a LogPusher account
  2. Create a new App and get API Token

Installation

go get logpusher

Usage

package main

import (
	"fmt"
	"lpusherlib/src"
	"time"
)

func main() {

	client := logpusher.New("me@amazon.com", "strongpass", "logpusherapikey")

	result, err := client.Push("My awesome log message",
		"myawesomesite.com",
		"E-commerce",
		"Notice",
		"EVENT0",
		time.Now(),
		time.Now(),
	)

	if err != nil {
		panic(err.Error())
	}

	fmt.Println(result)
}

Support

Contributing

  1. Fork it ( https://github.com/LogPusher/logpusher-go/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

LogPusher client library for Go (http://www.logpusher.com)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages