co-log itself provides these:
Whereas, co-log-effectful only provides:
In my application, I'm creating a wrapper function to mimic the co-log wrappers:
log :: forall es. (HasCallStack, Log Message :> es) => Severity -> Text -> Eff es ()
log msgSeverity msgText =
withFrozenCallStack $ logMsg $ Msg {msgStack = callStack, ..}
In context: https://github.com/juspay/vira/blob/b600377d7e271fb600a544c00625e0a232086feb/packages/vira/src/Vira/App/Logging.hs#L41-L48
Would it make sense to upstream that function to this library in some form?
co-logitself provides these:Whereas,
co-log-effectfulonly provides:In my application, I'm creating a wrapper function to mimic the
co-logwrappers:In context: https://github.com/juspay/vira/blob/b600377d7e271fb600a544c00625e0a232086feb/packages/vira/src/Vira/App/Logging.hs#L41-L48
Would it make sense to upstream that function to this library in some form?