Categorygithub.com/SampleUser0001/logrus_conf
modulepackage
0.0.2
Repository: https://github.com/sampleuser0001/logrus_conf.git
Documentation: pkg.go.dev

# README

logrus_conf

logrusの設定を読み込む

setup

go get github.com/sirupsen/logrus
go get github.com/SampleUser0001/logrus_conf
mkdir log

Sample Program

package main

import (
	logconf "github.com/SampleUser0001/logrus_conf"
	"github.com/sirupsen/logrus"
)

func main() {
	logconf.LogConf()
	logconf.Log.WithFields(logrus.Fields{
		"animal": "walrus",
		"size":   10,
	}).Info("A group of walrus emerges from the ocean")
}

# Functions

No description provided by the author
No description provided by the author

# Variables

ログインスタンス生成.

# Structs

No description provided by the author