Microsoft.Extensions.Logging.Console
For consoles which understand the ANSI escape code sequences to represent color
Parses a subset of display attributes
Set Display Attributes
Set Attribute Mode [{attr1};...;{attrn}m
Sets multiple display attribute settings. The following lists standard attributes that are getting parsed:
1 Bright
Foreground Colours
30 Black
31 Red
32 Green
33 Yellow
34 Blue
35 Magenta
36 Cyan
37 White
Background Colours
40 Black
41 Red
42 Green
43 Yellow
44 Blue
45 Magenta
46 Cyan
47 White
Allows custom log messages formatting
Gets the name associated with the console log formatter.
Writes the log message to the specified TextWriter.
if the formatter wants to write colors to the console, it can do so by embedding ANSI color codes into the string
The log entry.
The provider of scope data.
The string writer embedding ansi code for colors.
The type of the object to be written.
Reserved formatter names for the built-in console formatters.
Reserved name for simple console formatter
Reserved name for json console formatter
Reserved name for systemd console formatter
Options for the built-in console log formatter.
Includes scopes when .
Gets or sets format string used to format timestamp in logging messages. Defaults to null.
Gets or sets indication whether or not UTC timezone should be used to for timestamps in logging messages. Defaults to false.
Format of messages.
Produces messages in the default console format.
Produces messages in a format suitable for console output to the systemd journal.
Options for a .
Disables colors when .
Gets or sets log message format. Defaults to .
Name of the log message formatter to use. Defaults to "simple" />.
Includes scopes when .
Gets or sets value indicating the minimum level of messages that would get written to Console.Error.
Gets or sets format string used to format timestamp in logging messages. Defaults to null.
Gets or sets indication whether or not UTC timezone should be used to for timestamps in logging messages. Defaults to false.
A provider of instances.
Creates an instance of .
The options to create instances with.
Creates an instance of .
The options to create instances with.
Log formatters added for insteaces.
Options for the built-in json console log formatter.
Gets or sets JsonWriterOptions.
Determines when to use color when logging messages.
Use the default color behavior, enabling color except when the console output is redirected.
Enables color except when the console output is redirected.
Enable color for logging
Disable color for logging
Options for the built-in default console log formatter.
Determines when to use color when logging messages.
When , the entire message gets logged in a single line.
Adds a console logger named 'Console' to the factory.
The to use.
Adds a console logger named 'Console' to the factory.
The to use.
A delegate to configure the .
Add the default console log formatter named 'simple' to the factory with default properties.
The to use.
Add and configure a console log formatter named 'simple' to the factory.
The to use.
A delegate to configure the options for the built-in default log formatter.
Add a console log formatter named 'json' to the factory with default properties.
The to use.
Add and configure a console log formatter named 'json' to the factory.
The to use.
A delegate to configure the options for the built-in json log formatter.
Add and configure a console log formatter named 'systemd' to the factory.
The to use.
A delegate to configure the options for the built-in systemd log formatter.
Add a console log formatter named 'systemd' to the factory with default properties.
The to use.
Adds a custom console logger formatter 'TFormatter' to be configured with options 'TOptions'.
The to use.
Adds a custom console logger formatter 'TFormatter' to be configured with options 'TOptions'.
The to use.
A delegate to configure options 'TOptions' for custom formatter 'TFormatter'.
Scope provider that does nothing.
Returns a cached instance of .
An empty scope without any logic
Cannot allocate a buffer of size {0}.