I wanted to a way through which we could keep the count of no. of errors and warnings that have occurred in logrus logs.
I want to use a struct to keep count of the errors and warnings,
type ErrorsAndWarnings struct{
Errors int
Warnings int
}