mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 03:52:50 +08:00

Added LogError(string) to interface as sometimes there isn't an exception to be logged. Additionally, split Logger and LoggerFactory implementations into seperate files just for tidiness. Additonally added some very basic unit tests to the HttpDataRepository as a bit of regression safety and to prove that Get never returns a null. Slightly refactored the logic within AspDotNetLogger under GetMessageWithOcelotRequestId so that the if statement is a little easier to read. Attempted to remove the requestId == null, however this broke numerous tests as the mocks don't set the behviour for dataReposioty getting the requestId