Skip to content

Add getter to get *logrus.Logger object of salt/log #29

@mabdh

Description

@mabdh

Is your feature request related to a problem? Please describe.
grpc-middleware has support of logrus logger. However, they only accept argument with type *logrus.Logger. In salt, *logrus.Logger is private, we need to have a getter function to get the object.

Describe the solution you'd like
In this file, we could add a new function

func (l *Logrus) LogrusLogger() *logrus.Logger {
	return l.log
}

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions