Prajna


Logger

Logger

Static members

Static memberDescription
DefaultLogId
Signature: string

Default log id

DefaultLogIdLogLevel
Signature: LogLevel
Fail(logId, message)
Signature: (logId:string * message:string) -> '?16639
Type parameters: '?16639
Fail(message)
Signature: message:string -> '?16637
Type parameters: '?16637
Flush()
Signature: unit -> unit

Flush the pending log entries

GetLogFile()
Signature: unit -> string

Return a file that contains the latest log entries

Log(jobId, logLevel, message)
Signature: (jobId:Guid * logLevel:LogLevel * message:string) -> unit

Log "message" using "jobID"

Log(logId, jobId, logLevel, message)
Signature: (logId:string * jobId:Guid * logLevel:LogLevel * message:string) -> unit

Log "message" using "logId" and jobID

Log(logId, logLevel, message)
Signature: (logId:string * logLevel:LogLevel * message:string) -> unit

Log "message" using "logId"

Log(logLevel, message)
Signature: (logLevel:LogLevel * message:string) -> unit

Log "message" if logLevel <= Logger.DefaultLogLevel

LoggerProvider()
Signature: unit -> ILoggerProvider

The logger provider that is used for logging

LoggerProvider()
Signature: unit -> unit

The logger provider that is used for logging

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

Log stack trace with "logId"

LogStackTrace(logLevel)
Signature: logLevel:LogLevel -> unit

Log stack trace if logLevel <= Logger.DefaultLogLevel

ParseArgs(args)
Signature: (args:string []) -> unit

Parse the arguments that configure the behavior of the logger

PrintArgsUsage()
Signature: unit -> unit
ShowTimeForJobId()
Signature: unit -> bool
ShowTimeForJobId()
Signature: unit -> unit
Fork me on GitHub