Replies: 3 comments 7 replies
-
I agree this is opinionated. At the same time, I believe it makes sense 😃 Allow me to explain. Like Erlang, I imagine this project to be used in server-style applications, i.e., handling requests with some IO effects. In production (and even development), logging is important, and should be encouraged/made easy. Whilst of course it'd be possible to push providing the ability to log from process code towards the library consumer, I don't think it's that simple. Since However, how would this work when other code, e.g., a supervisor, needs to spawn a new process? One could argue a supervisor should somehow take a In the end, if |
Beta Was this translation helpful? Give feedback.
-
That makes sense. I was wondering if the logger could also be an actor, for example to handle forwarding the event to a remote system. Or perhaps this should be a separate system. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid (or, rather, hope 😄) that some systems would want structured logging - emitting JSON/CBOR/etc documents instead of plain text. And different systems would have different requirements. The logging system thus would be peppered with format type parameters or something else to burden its users. |
Beta Was this translation helpful? Give feedback.
-
Raised by @TristanCacqueray in https://discourse.haskell.org/t/towards-an-actor-framework-for-haskell/5929/10, based on the content of https://github.com/NicolasT/troupe/wiki/Design-Ideas/.
Beta Was this translation helpful? Give feedback.
All reactions