Documentation

Lean.Log

class Lean.MonadLog (m : TypeType) extends Lean.MonadFileMap :
Type
Instances
instance Lean.instMonadLog (m : TypeType) (n : TypeType) [inst : MonadLift m n] [inst : Lean.MonadLog m] :
Equations
def Lean.getRefPos {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] :
Equations
def Lean.getRefPosition {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] :
Equations
def Lean.logAt {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (ref : Lean.Syntax) (msgData : Lean.MessageData) (severity : optParam Lean.MessageSeverity Lean.MessageSeverity.error) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.logErrorAt {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (ref : Lean.Syntax) (msgData : Lean.MessageData) :
Equations
def Lean.logWarningAt {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (ref : Lean.Syntax) (msgData : Lean.MessageData) :
Equations
def Lean.logInfoAt {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (ref : Lean.Syntax) (msgData : Lean.MessageData) :
Equations
def Lean.log {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (msgData : Lean.MessageData) (severity : optParam Lean.MessageSeverity Lean.MessageSeverity.error) :
Equations
  • Lean.log msgData severity = do let ref ← Lean.MonadLog.getRef Lean.logAt ref msgData severity
def Lean.logError {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (msgData : Lean.MessageData) :
Equations
def Lean.logWarning {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (msgData : Lean.MessageData) :
Equations
def Lean.logInfo {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (msgData : Lean.MessageData) :
Equations
def Lean.logTrace {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (cls : Lean.Name) (msgData : Lean.MessageData) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.logUnknownDecl {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] (declName : Lean.Name) :
Equations