The issue #813 was fixed and allowed tests .Fatal() with custom loggers.
That said the ExitFunction can be changed only if you instanciate a logger. If you use the "default Logger" you cant change that (the "default logger" ain't exported so I cant just overwrite the exit function). This make testing functions that can call the logrus.Fatal() kinda tricky.
Would be possible to create and export a Setter for the Logger? If you are accepting PRs I don't mind creating one.
The issue #813 was fixed and allowed tests .Fatal() with custom loggers.
That said the ExitFunction can be changed only if you instanciate a logger. If you use the "default Logger" you cant change that (the "default logger" ain't exported so I cant just overwrite the exit function). This make testing functions that can call the logrus.Fatal() kinda tricky.
Would be possible to create and export a Setter for the Logger? If you are accepting PRs I don't mind creating one.