Zulip Chat Archive

Stream: lean4

Topic: Get info


Marcus Rossel (Nov 12 2024 at 13:23):

Is there a way to obtain the message data logged with logInfo from another tactic? That is, something like observingLogInfo in the following example:

import Lean
open Lean Meta Elab Term Tactic

elab "log_to_warn" t:tactic : tactic => do
  let msg : MessageData  observingLogInfo (evalTactic t)
  logWarning msg

Edward van de Meent (Nov 12 2024 at 13:26):

i think if you look into how #guard_msgs works, you might find such functionality...


Last updated: May 02 2025 at 03:31 UTC