Prajna


Logger

Provides logging interface and utility functions.

Static members

Static memberDescription
Do(logId, logLevel, action)
Signature: (logId:string * logLevel:LogLevel * action:(unit -> unit)) -> unit

Execute 'action' if "logLevel" is less than or equal to the log level for "logId"

Do(logLevel, action)
Signature: (logLevel:LogLevel * action:(unit -> unit)) -> unit

Execute 'action' if logLevel <= Logger.DefaultLogLevel

LogF(...)
Signature: (logId:string * jobId:Guid * logLevel:LogLevel * messageFunc:(unit -> string)) -> unit

Log message generated by "messageFunc" using "JobId", "messageFunc" is evaluated only if "logLevel" is less than or equal to the log level for "logId"

LogF(jobId, logLevel, messageFunc)
Signature: (jobId:Guid * logLevel:LogLevel * messageFunc:(unit -> string)) -> unit

Log message generated by "messageFunc" using "JobId", "messageFunc" is evaluated only if "logLevel" is less than or equal to the log level for "logId"

LogF(logId, logLevel, messageFunc)
Signature: (logId:string * logLevel:LogLevel * messageFunc:(unit -> string)) -> unit

Log message generated by "messageFunc" using "logId", "messageFunc" is evaluated only if "logLevel" is less than or equal to the log level for "logId"

LogF(logLevel, messageFunc)
Signature: (logLevel:LogLevel * messageFunc:(unit -> string)) -> unit

Log the message generated by "messageFunc", "messageFunc" is evaluated only if logLevel <= Logger.DefaultLogLevel

Fork me on GitHub