Skip to content

Commit 4b546a1

Browse files
committed
docs: update README with new template variables
- Document new placeholders: timestamp, environment_name, route_summary, user_summary - Document all available template variables including full data sections - Remove trace_id from documentation
1 parent 0e58ba0 commit 4b546a1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,26 @@ This will copy the templates to `resources/views/vendor/github-monolog/` where y
124124
Available template variables:
125125
- `{level}`: Log level (error, warning, etc.)
126126
- `{message}`: The error message or log content
127+
- `{class}`: Exception class name
128+
- `{signature}`: Internal signature used for deduplication
129+
- `{timestamp}`: Timestamp when the error occurred (format: Y-m-d H:i:s)
130+
- `{environment_name}`: Environment name (e.g., production, staging) from APP_ENV
131+
- `{route_summary}`: HTTP method and path (e.g., "GET /api/users")
132+
- `{user_summary}`: User ID or "Unauthenticated"
127133
- `{simplified_stack_trace}`: A cleaned up stack trace
128134
- `{full_stack_trace}`: The complete stack trace
129135
- `{previous_exceptions}`: Details of any previous exceptions
130-
- `{context}`: Additional context data
131-
- `{extra}`: Extra log data
132-
- `{signature}`: Internal signature used for deduplication
136+
- `{environment}`: Full environment data (JSON)
137+
- `{request}`: Full request data (JSON)
138+
- `{route}`: Full route data (JSON)
139+
- `{user}`: Full user data (JSON)
140+
- `{queries}`: Recent database queries
141+
- `{job}`: Job context data (JSON)
142+
- `{command}`: Command context data (JSON)
143+
- `{outgoing_requests}`: Outgoing HTTP requests
144+
- `{session}`: Session data (JSON)
145+
- `{context}`: Additional context data (JSON)
146+
- `{extra}`: Extra log data (JSON)
133147

134148
### Deduplication
135149

0 commit comments

Comments
 (0)