Returns a logger instance based on the type of logger that the factory was instructed to create.
Resets the logger and creates a new one on next request.