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 format 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 format timestamps in logging messages. Defaults to false.
Gets or sets the desired console logger behavior when the queue becomes full. Defaults to Wait.
Gets or sets the maximum number of enqueued messages. Defaults to 2500.
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.
Determines the console logger behavior when the queue becomes full.
Blocks the logging threads once the queue limit is reached.
Drops new log messages when the queue is full.
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
Throws an if is null.
The reference type argument to validate as non-null.
The name of the parameter with which corresponds.
Whether to output ansi color strings.
Get whether to emit ANSI color codes.
Indicates that the specified method requires the ability to generate new code at runtime,
for example through .
This allows tools to understand which methods are unsafe to call when compiling ahead of time.
Initializes a new instance of the class
with the specified message.
A message that contains information about the usage of dynamic code.
Gets a message that contains information about the usage of dynamic code.
Gets or sets an optional URL that contains more information about the method,
why it requires dynamic code, and what options a consumer has to deal with it.
Specifies the syntax used in a string.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Optional arguments associated with the specific syntax employed.
Gets the identifier of the syntax used.
Optional arguments associated with the specific syntax employed.
The syntax identifier for strings containing composite formats for string formatting.
The syntax identifier for strings containing date format specifiers.
The syntax identifier for strings containing date and time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing JavaScript Object Notation (JSON).
The syntax identifier for strings containing numeric format specifiers.
The syntax identifier for strings containing regular expressions.
The syntax identifier for strings containing time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing URIs.
The syntax identifier for strings containing XML.
Cannot allocate a buffer of size {0}.
{0} is not a supported queue mode value.
{0} must be larger than zero.
{0} message(s) dropped because of queue size limit. Increase the queue size or decrease logging verbosity to avoid this. You may change `ConsoleLoggerQueueFullMode` to stop dropping messages.
Attribute used to indicate a source generator should create a function for marshalling
arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time.
This attribute is meaningless if the source generator associated with it is not enabled.
The current built-in source generator only supports C# and only supplies an implementation when
applied to static, partial, non-generic methods.
Initializes a new instance of the .
Name of the library containing the import.
Gets the name of the library containing the import.
Gets or sets the name of the entry point to be called.
Gets or sets how to marshal string arguments to the method.
If this field is set to a value other than ,
must not be specified.
Gets or sets the used to control how string arguments to the method are marshalled.
If this field is specified, must not be specified
or must be set to .
Gets or sets whether the callee sets an error (SetLastError on Windows or errno
on other platforms) before returning from the attributed method.
Specifies how strings should be marshalled for generated p/invokes
Indicates the user is suppling a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.