© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Unexpected Logging Behavior with `HttpMiddleware.logger` in Effect Typescript Library - Effect Community
EC
Effect Community
•
2y ago
•
9 replies
Stephen Bluck
Unexpected Logging Behavior with `HttpMiddleware.logger` in Effect Typescript Library
I am seeing some strange stuff with the
HttpMiddleware.logger
HttpMiddleware.logger
. Take this code as an example
:
https://effect.website/play/#5a3b4e982b11
When there is a defect or an error
, the logger will log the following
:
level
=INFO
message
=
"Sent HTTP Response
"
http
.status
=200
1
. Why is it logging at the INFO level
?
2
. The log is kind of a lie as it does not return a response when the effect is ran because of the defect
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Customizing HttpMiddleware.logger to Disable Logging for Certain Endpoints
EC
Effect Community / platform
6mo ago
Behavior of Spans with `HttpMiddleware.withTracerDisabledWhen`
EC
Effect Community / platform
7mo ago
Improving HttpMiddleware.logger to Skip Logging for Already Sent Responses
EC
Effect Community / platform
2y ago
Question about HttpServerResponse Design Decisions and Logging in Effect Typescript Library
EC
Effect Community / platform
8mo ago