@remix-run/logger-middleware 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,20 +1,24 @@
1
1
  # logger-middleware
2
2
 
3
- Middleware for logging HTTP requests and responses for use with [`@remix-run/fetch-router`](https://github.com/remix-run/remix/tree/main/packages/fetch-router).
3
+ HTTP request/response logging middleware for Remix. It logs request metadata and response details with configurable output formats.
4
4
 
5
- Logs information about HTTP requests and responses with customizable formatting.
5
+ ## Features
6
+
7
+ - **Request/Response Logging** - Logs method, path, status, and response metadata
8
+ - **Token-Based Formatting** - Customize log output with built-in placeholders
9
+ - **Structured Timing Data** - Includes request duration and timestamps
6
10
 
7
11
  ## Installation
8
12
 
9
13
  ```sh
10
- npm install @remix-run/logger-middleware
14
+ npm i remix
11
15
  ```
12
16
 
13
17
  ## Usage
14
18
 
15
19
  ```ts
16
- import { createRouter } from '@remix-run/fetch-router'
17
- import { logger } from '@remix-run/logger-middleware'
20
+ import { createRouter } from 'remix/fetch-router'
21
+ import { logger } from 'remix/logger-middleware'
18
22
 
19
23
  let router = createRouter({
20
24
  middleware: [logger()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/logger-middleware",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Middleware for logging HTTP requests and responses",
5
5
  "author": "Michael Jackson <mjijackson@gmail.com>",
6
6
  "license": "MIT",
@@ -28,10 +28,10 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "^24.6.0",
30
30
  "@typescript/native-preview": "7.0.0-dev.20251125.1",
31
- "@remix-run/fetch-router": "0.15.1"
31
+ "@remix-run/fetch-router": "0.17.0"
32
32
  },
33
33
  "dependencies": {
34
- "@remix-run/fetch-router": "^0.15.1"
34
+ "@remix-run/fetch-router": "^0.17.0"
35
35
  },
36
36
  "keywords": [
37
37
  "fetch",