Popularity
0.4
Stable
Activity
5.7
Declining
2
1
0

Programming language: Go
Tags: Logging     Go     Golang     Logentries     Log    
Latest version: v0.1.5

MrZ's go-logger alternatives and similar packages

Based on the "Logging" category

Do you think we are missing an alternative of MrZ's go-logger or a related project?

Add another 'Logging' Package

README

go-logger

go-logger is an easy to use, extendable and super fast logging package for Go

Go Build Status Report Codacy Badge Release standard-readme compliant GoDoc

Table of Contents

Installation

go-logger requires a supported release of Go.

$ go get -u github.com/mrz1836/go-logger

For use with Log Entries, change the environment variables:

export LOG_ENTRIES_TOKEN=your-token-here

(Optional) Set custom endpoint or port parameters

export LOG_ENTRIES_ENDPOINT=us.data.logs.insight.rapid7.com
export LOG_ENTRIES_PORT=514

Documentation

You can view the generated documentation here.

Features

  • Native logging package (extends log package)
  • Native support for Log Entries with queueing
  • Test coverage on all custom methods
  • Supports different Rapid7 endpoints & ports

Examples & Tests

All unit tests and [examples](example/example.go) run via Travis CI and uses Go version 1.13.x. View the [deployment configuration file](.travis.yml).

  • [examples](example/example.go)
  • [tests](logger_test.go)

Run all tests (including integration tests)

$ cd ../go-logger
$ go test ./... -v

Run tests (excluding integration tests)

$ cd ../go-logger
$ go test ./... -v -test.short

Benchmarks

Run the Go [benchmarks](logger_test.go):

$ cd ../go-logger
$ go test -bench . -benchmem

Code Standards

Read more about this Go project's [code standards](CODE_STANDARDS.md).

Usage

  • View the [examples](example/example.go)
  • View the [tests](logger_test.go)

Basic implementation:

package main

import "github.com/mrz1836/go-logger"

func main() {
    logger.Data(2, logger.DEBUG, "testing the go-logger package")
    // Output: type="debug" file="example/example.go" method="main.main" line="12" message="testing the go-logger package"
}

Maintainers

MrZ kayleg

Contributing

View the [contributing guidelines](CONTRIBUTING.md) and follow the [code of conduct](CODE_OF_CONDUCT.md).

Support the development of this project 🙏

Donate

License

License


*Note that all licence references and agreements mentioned in the MrZ's go-logger README section above are relevant to that project's source code only.