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

Improve printing functions of TemplateMonad #1118

Open
MathisBD opened this issue Nov 21, 2024 · 0 comments
Open

Improve printing functions of TemplateMonad #1118

MathisBD opened this issue Nov 21, 2024 · 0 comments

Comments

@MathisBD
Copy link
Collaborator

Currently tmPrint always outputs on the "notices" channel. It would be nice if the user could choose the channel. Something like :

Axiom tmMsg : LogLevel.t -> forall {A}, A -> TemplateMonad unit.

Module LogLevel.
Inductive t :=
  | Debug
  | Info 
  | Notice 
  | Warning 
  | Error.
End LogLevel.

And then we could define tmPrint as :

Definition tmPrint := tmMsg Notice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant