Idris2Doc : Core.Context.Log

Core.Context.Log

(source)

Reexports

importpublic Core.Context

Definitions

logString : String->Nat->String->Core ()
Visibility: export
logString' : LogLevel->String->Core ()
Visibility: export
logging' : RefCtxtDefs=>LogLevel->CoreBool
Visibility: export
unverifiedLogging : RefCtxtDefs=>String->Nat->CoreBool
Visibility: export
logging : RefCtxtDefs=>LogTopic->Nat->CoreBool
Visibility: export
logTerm : RefCtxtDefs=>LogTopic->Nat-> Lazy String->Termvars->Core ()
  Log message with a term, translating back to human readable names first.

Visibility: export
log' : RefCtxtDefs=>LogLevel-> Lazy String->Core ()
Visibility: export
log : RefCtxtDefs=>LogTopic->Nat-> Lazy String->Core ()
  Log a message with the given log level. Use increasingly
high log level numbers for more granular logging.

If you want to use some `Core` computation to produce a message string, use `logC`.
I.e. instead of `log "topic" 10 "message \{show !(toFullNames fn)}"` use
`logC "topic" 10 $ do pure ""message \{show !(toFullNames fn)}""`.
This will enfore that additional computation happends only when needed.
`do` before `pure` in this case ensures the correct bounds.

Visibility: export
unverifiedLogC : RefCtxtDefs=>String->Nat->CoreString->Core ()
Visibility: export
logC : RefCtxtDefs=>LogTopic->Nat->CoreString->Core ()
Visibility: export
logTimeOver : Integer->CoreString->Corea->Corea
Visibility: export
logTimeWhen : RefCtxtDefs=>Bool->Nat-> Lazy String->Corea->Corea
Visibility: export
logTimeRecord : RefCtxtDefs=>String->Corea->Corea
Visibility: export
showTimeRecord : RefCtxtDefs=>Core ()
Visibility: export
logTime : RefCtxtDefs=>Nat-> Lazy String->Corea->Corea
Visibility: export