You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per that post, you would normally use module Lwt_log, not Lwt_log_core everywhere. I was just being explicit about what actual underlying module everything was coming from.
I'm in favor of deprecating Lwt_log in principle, as we evidently don't have the labor resources to properly maintain it. We would suggest people use logs, in particular Logs_lwt`.
I found the docs of Logs_lwt also a bit nebulous last December, so maybe they ought to be improved as well. Not sure what their current status is, and I don't remember the specific difficulties I was having. I did end up using it successfully, though.
@rgrinberg, any thoughts on what to do about Lwt_log in terms of packaging? Perhaps we could factor it out into its own package, and then constrain that package with an upper bound when Lwt_log becomes incompatible with Lwt?
Ok, I added the example to the module description, stated the relation to Lwt_log_core (telling the reader that most of Lwt_log is documented in Lwt_log_core), and recommended checking out Logs_lwt (linking to it and the home page of logs). Given the theme is we don't have enough labor resources to work on Lwt_log, including factoring it, I think this should be good for now. Please let me know any thoughts.
any thoughts on what to do about Lwt_log in terms of packaging? Perhaps we could factor it out into its own package, and then constrain that package with an upper bound when Lwt_log becomes incompatible with Lwt?
Seems like it would be easier to just fix it rather than mess around with upper bounds?
I agree with splitting the package for the purpose of getting rid of more dotted findlib names.
Activity
aantron commentedon Sep 6, 2017
@dannywillems, try the code in this post: https://discuss.ocaml.org/t/about-lwt-concurrency-library/150/6:
As per that post, you would normally use module
Lwt_log, notLwt_log_coreeverywhere. I was just being explicit about what actual underlying module everything was coming from.aantron commentedon Sep 6, 2017
Also, even if this answers your question, let's leave the issue open to remind about improving the docs.
rgrinberg commentedon Sep 6, 2017
@dannywillems Have a look at https://github.com/dbuenzli/logs for a logging solution. It has a better API for logging and isn't Lwt specific. Lwt_log should be deprecated IMO.
dannywillems commentedon Sep 27, 2017
Thanks @rgrinberg and @aantron. Sorry to answer now.
aantron commentedon Oct 12, 2017
No worries, most open source takes place at the rate at which people happen to by luck be available :)
aantron commentedon Oct 13, 2017
I'm in favor of deprecating
Lwt_login principle, as we evidently don't have the labor resources to properly maintain it. We would suggest people uselogs, in particular Logs_lwt`.I found the docs of
Logs_lwtalso a bit nebulous last December, so maybe they ought to be improved as well. Not sure what their current status is, and I don't remember the specific difficulties I was having. I did end up using it successfully, though.@rgrinberg, any thoughts on what to do about
Lwt_login terms of packaging? Perhaps we could factor it out into its own package, and then constrain that package with an upper bound whenLwt_logbecomes incompatible with Lwt?aantron commentedon Oct 13, 2017
Ok, I added the example to the module description, stated the relation to
Lwt_log_core(telling the reader that most ofLwt_logis documented inLwt_log_core), and recommended checking outLogs_lwt(linking to it and the home page oflogs). Given the theme is we don't have enough labor resources to work onLwt_log, including factoring it, I think this should be good for now. Please let me know any thoughts.rgrinberg commentedon Oct 14, 2017
Seems like it would be easier to just fix it rather than mess around with upper bounds?
I agree with splitting the package for the purpose of getting rid of more dotted findlib names.
aantron commentedon Oct 20, 2017
Factoring out
Lwt_logis beginning in #484 by @hannesm, in particular see #484 (comment) for a plan.Improve docs of Lwt_log