Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A mistake #31

Closed
godla opened this issue Jan 21, 2018 · 2 comments
Closed

A mistake #31

godla opened this issue Jan 21, 2018 · 2 comments

Comments

@godla
Copy link

godla commented Jan 21, 2018

Change for README.md

func NewLogger() *logrus.Logger {
	if Log != nil {
		return Log
	}

	pathMap := lfshook.PathMap{
		logrus.InfoLevel:  "/var/log/info.log",
		logrus.ErrorLevel: "/var/log/error.log",
	}

	// here need new a log . 
Log = logrus.New()
	Log.Hooks.Add(lfshook.NewHook(
		pathMap,
		&logrus.JSONFormatter{},
	))
	return Log
}
@rifflock
Copy link
Owner

rifflock commented Feb 1, 2018

You are correct. I updated your comment for formatting. I'll update the README for this and #30 this weekend.

@rifflock
Copy link
Owner

fixed in v2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants