Giter Site home page Giter Site logo

heirko / go-contrib Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 7.0 23 KB

Helper for Log configuration, Mixin for properties with fangs

License: MIT License

Go 100.00%
logrus-helper logrus golang-library properties fang log configuration viper marshalling

go-contrib's Introduction

go-contrib by Heirko

Build Status GoDoc Go Report Card

Heirko use open source software and want contribute to community. This repository represent some library in Golang developed by our team.

Logrus Helper

You can find a sample usage in Heirko iris-contrib

Have fun and follow us on Facebook Check or new product Primimo !

Properties

A Properites / configuration app helper, Properties accessor that wrap Viper. Easier app configuration.

Read more

go-contrib's People

Contributors

heralight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-contrib's Issues

Request for adding a new function

I tried cloning and creating a branch but i do not have privileges. so could you please add the below function to the library under go-contrib\logrusHelper\config.go
it will help if i have my viper configuration categorized and want to load to loggerconfig.

// UnmarshalConfigurationByKey read configuration from viper by a category key.
//  e.g., if you have all your logging properties under a common key logging
// It returns a logrus_mate logger configuration instance.
func UnmarshalConfigurationByKey(key string, viper *viper.Viper) (conf mate.LoggerConfig) {
	err := viper.UnmarshalKey(key, &conf)
	if err != nil {
		log.Fatalf("unable to decode into struct, %v", err)
	}
	if err = conf.Validate(); err != nil {
		panic(err)
	}
	return
}

Logrus Helper: logrus_mate dependencies problem

I think some packages have changed because there is a dependency problem by getting the package logrusHelper.

$ go get -u github.com/heirko/go-contrib/logrusHelper
# github.com/heirko/go-contrib/logrusHelper
../github.com/heirko/go-contrib/logrusHelper/config.go:13: undefined: logrus_mate.LoggerConfig
../github.com/heirko/go-contrib/logrusHelper/config.go:25: undefined: logrus_mate.LoggerConfig

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.