LiterateConsoleTarget
Namespace: Semagle.Logging
Logs a line in a format that is great for human consumption,
using console colours to enhance readability.
Sample: [10:30:49 INF] User "AdamC" began the "checkout" process with 100 cart items
Constructors
Constructor | Description |
new(...)
Signature: (name:string [] * minLevel:LogLevel * outputTemplate:string * options:LiterateOptions option * outputWriter:(obj -> ColouredTextPart list -> unit) option * consoleSemaphore:obj option) -> LiterateConsoleTarget
|
Creates the target with a custom output template. The default outputTemplate
is [{timestampLocal:HH:mm:ss} {level}] {message}{exceptions} .
Available template fields are: timestamp , timestampUtc , level , source ,
newline , tab , message , exceptions . Any misspelled or otheriwese invalid property
names will be treated as LiterateToken.MissingTemplateField .
CompiledName: .ctor
|
new(...)
Signature: (name:string [] * minLevel:LogLevel * options:LiterateOptions option * literateTokeniser:(LiterateOptions -> Message -> TokenisedPart list) option * outputWriter:(obj -> ColouredTextPart list -> unit) option * consoleSemaphore:obj option) -> LiterateConsoleTarget
|
CompiledName: .ctor
|