Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs #1068

Closed
wants to merge 3 commits into from
Closed

Logs #1068

wants to merge 3 commits into from

Conversation

Halbaroth
Copy link
Collaborator

@Halbaroth Halbaroth commented Mar 21, 2024

This PR starts to use logs to print debug messages.
I tried to keep it as reasonable as possible, so I didn't change all the
printers.

  • Every named modules and functions are located in a new module Self.
    I created this module because we share these named locations between
    printers, timers and the profiling module;
  • Each named modules expose a Logs source (see Self.get_source);
  • The CLI option --dd changes the level of these sources;
  • I use the tag feature of Logs to print function names;
  • I clean and use Logs to print debug messages in Shostak, Satml,
    Satml_frontend and the enum theory;
  • The new Logs reporter Printer.reporter chooses the appropriate output
    according to the source.

@Halbaroth
Copy link
Collaborator Author

This PR adds a pin on Ocplib-simplex (see issue #1077). We have to add this pin because the latest release of Ocplib-simplex prints some debugging messages at the App level.

@bclement-ocp
Copy link
Collaborator

@Halbaroth what is the status of this PR?

This PR starts to use logs to print debug messages.
I tried to keep it as reasonable as possible, so I didn't change all the
printers.

- Every named modules and functions are located in a new module `Self`.
  I created this module because we share these named locations between
  printers, timers and the profiling module;
- Each named modules expose a `Logs` source (see `Self.get_source`);
- The CLI option `--dd` changes the level of these sources;
- I use the tag feature of `Logs` to print an eventual function name.
- I clean and use Logs to print debug messages in `Shostak`, `Satml`,
  `Satml_frontend` and the `enum` theory.
- The new Logs reporter `Printer.reporter` chooses the appropriate output
  according to the source.
@Halbaroth Halbaroth mentioned this pull request Aug 12, 2024
5 tasks
@Halbaroth Halbaroth closed this Aug 14, 2024
@bclement-ocp
Copy link
Collaborator

(Superseded by #1206 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants