Effect CommunityEC
Effect Community3y ago
5 replies
braden

Use cases for logging with Effect.log and passing errors as strings

Hey guys, I was wondering what would be the use cases for logging https://effect.website/docs/guide/observability/logging#debug when the Effect.log only takes in strings? If I want to log errors if they exist, is it worth e.g. passing in Effect.logFatal(String(error)) as opposed to console.error?
Was this page helpful?