Set server framework
By default the library will be configured to run with express. If you are going to use another server framework, you have to change the configuration accordingly. There are 2 ways to do this:
-  
Set the key-value pair
"framework": "$frameworkName"in a configuration file:{ "framework": "restify" } -  
Set the server framework from a logger instance by calling:
 
log.forceLogger("connect") 
Our supported server frameworks are:
- Express: declare as 
express - Restify: declare as 
restify - Connect: declare as 
connect - Fastify: declare as 
fastify - Node.js HTTP: declare as 
plainhttp