docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a logging system for a web API that captures and logs HTTP requests with extracted route parameters.
/users/:id endpoint with the user ID extracted from the path @test/users endpoint without parameters @test/users/:id endpoint with the user ID extracted @test/api/:resource/:action endpoint with both resource and action parameters extracted @test/**
* Creates a Koa application with route-based logging middleware.
* Returns the configured Koa app instance.
*
* The logger should capture:
* - HTTP method
* - Route path pattern
* - Extracted parameters
*
* @returns {Object} Configured Koa application instance
*/
function createLoggerApp() {
// IMPLEMENTATION HERE
}
module.exports = { createLoggerApp };Provides the web application framework.
Provides route middleware support with path parameter extraction.