Skip to content

Conversation

@Julow
Copy link
Member

@Julow Julow commented Apr 1, 2025

Written the same way as #1 and reusing as much code as possible.

Lwt_log's README indicate that its deprecated in favor of Logs. Logs has less features out of the box for filtering and broadcasting logs but other than that is a 1:1 fit.

Julow added 23 commits March 28, 2025 17:21
Migrate programs using Lwt_log to the Logs library.
The same rules for detecting functions are used than in
lwt-to-direct-style and are moved to [Ast_utils.rewrite_apply].
I couldn't reverse the order using the '@' operator after a few tries so
inversing the order of operations. It's a little less nice with 'return'
appearing at the first position but it works.
The channel is not closed in the generated code, so manual intervention
is needed. 'set_close_on_exec' is no longer called on the fd.
@Julow
Copy link
Member Author

Julow commented Apr 8, 2025

This is successful: ocsigen/ocsigenserver#256

@Julow Julow merged commit eda9cb9 into main Apr 8, 2025
@Julow Julow deleted the lwt_log_to_logs branch July 4, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants