Comments (5)
That's what I mean, yeah. I think all loggers, logDebug, etc. should have better support for logging an instance of an Error
type if that's what's provided to it. #2667
from effect.
They already have good support for Cause
effect.pipe(Effect.tapErrorCause(Effect.logError))
from effect.
I think Loggers should probably just be extended to have better support for Error
types so that.pipe(Effect.tapError(Effect.logError))
is sufficient.
from effect.
I would think it not to be best to have the logError
function have two purposes. Right now logError
means logging at the error level. Or otherwise that should then be done for all of the logging functions like logDebug
, logInfo
, etc or for none of them. I don't think logError
should be special.
from effect.
Ah, ok! I think that could be cool, yeah!
from effect.
Related Issues (20)
- From Discord: Effect of Adding `optional` on Schema Context
- From Discord: How to Obtain Effect Type Signatures in Managed Runtime for Utility Typing
- From Discord: Refining Error Channels in TypeScript Effects Without Tagged Errors HOT 2
- Stream.throttle should throttle the Chunk.values and not the Chunks HOT 5
- Schema.provide(Layer)
- From Discord: JSON Schema on Transformations HOT 4
- Stream.filterMapEffect but accepting Effect<Option<A>> instead of Option<Effect<A>> HOT 2
- From Discord: Utility for Overriding Decoder ParseOptions at Schema Level HOT 1
- Idea: Sockets HOT 2
- Idea: Content Addressable Storage abstraction
- From Discord: Custom Base Class with Static `make` Function for Object Instantiation
- Effect no longer works in cloudflare workers HOT 1
- Showing help documentation does not respect `CliConfig.showBuiltIns` HOT 1
- schema struct with `fields` property is not valid
- From Discord: RuntimeException: @effect/rpc: handler must return an array of responses with the same length as the
- From Discord: Type Error in `schema.minItems` vs. `schema.maxItems` Usage
- Cli: Add file picker to wizard mode
- From Discord: Trouble Generating JSON Schema with `JSONSchema.make` for Parsed Schemas
- Match: `withReturnType` fails with union types in matcher chains
- Add Drizzle ORM support to @effect/sql-drizzle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from effect.