Serilog.Sinks.Console Adds the AuditTo.Console() extension method to . Writes log events to . Logger sink configuration. The minimum level for events passed through the sink. Ignored when is specified. A message template describing the format used to write to the sink. The default is "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}". An object that will be used to `lock` (sync) access to the console output. If you specify this, you will have the ability to lock on this object, and guarantee that the console sink will not be about to output anything while the lock is held. Supplies culture-specific formatting information, or null. A switch allowing the pass-through minimum level to be changed at runtime. Specifies the level at which events will be written to standard error. The theme to apply to the styled output. If not specified, uses . Applies the selected or default theme even when output redirection is detected. Configuration object allowing method chaining. When is null When is null Writes log events to . Logger sink configuration. Controls the rendering of log events into text, for example to log JSON. To control plain text formatting, use the overload that accepts an output template. An object that will be used to `lock` (sync) access to the console output. If you specify this, you will have the ability to lock on this object, and guarantee that the console sink will not be about to output anything while the lock is held. The minimum level for events passed through the sink. Ignored when is specified. A switch allowing the pass-through minimum level to be changed at runtime. Specifies the level at which events will be written to standard error. Configuration object allowing method chaining. When is null When is null Adds the WriteTo.Console() extension method to . Writes log events to . Logger sink configuration. The minimum level for events passed through the sink. Ignored when is specified. A message template describing the format used to write to the sink. The default is "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}". An object that will be used to `lock` (sync) access to the console output. If you specify this, you will have the ability to lock on this object, and guarantee that the console sink will not be about to output anything while the lock is held. Supplies culture-specific formatting information, or null. A switch allowing the pass-through minimum level to be changed at runtime. Specifies the level at which events will be written to standard error. The theme to apply to the styled output. If not specified, uses . Applies the selected or default theme even when output redirection is detected. Configuration object allowing method chaining. When is null When is null Writes log events to . Logger sink configuration. Controls the rendering of log events into text, for example to log JSON. To control plain text formatting, use the overload that accepts an output template. An object that will be used to `lock` (sync) access to the console output. If you specify this, you will have the ability to lock on this object, and guarantee that the console sink will not be about to output anything while the lock is held. The minimum level for events passed through the sink. Ignored when is specified. A switch allowing the pass-through minimum level to be changed at runtime. Specifies the level at which events will be written to standard error. Configuration object allowing method chaining. When is null When is null Implements the {Level} element. can now have a fixed width applied to it, as well as casing rules. Width is set through formats like "u3" (uppercase three chars), "w1" (one lowercase char), or "t4" (title case four chars). Apply upper or lower casing to when is provided. Returns when no or invalid format provided. Provided string for formatting. Format string. The provided with formatting applied. Writes the provided value to the output, applying direction-based padding when is provided. Output object to write result. Provided value. The alignment settings to apply when rendering . A console theme using the ANSI terminal escape sequences. Recommended for Linux and Windows 10+. A 256-color theme along the lines of Visual Studio Code. A theme using only gray, black and white. A theme in the style of the original Serilog.Sinks.Literate. A theme in the style of the original Serilog.Sinks.Literate using only standard 16 terminal colors that will work on light backgrounds. Construct a theme given a set of styles. Styles to apply within the theme. When is null The base class for styled terminal output. No styling applied. True if styling applied by the theme is written into the output, and can thus be buffered and measured. Begin a span of text in the specified . Output destination. Style to apply. The number of characters written to . Reset the output to un-styled colors. Output destination. The number of characters written by the method. Elements styled by a console theme. Prominent text, generally content within an event's message. Boilerplate text, for example items specified in an output template. De-emphasized text, for example literal text in output templates and punctuation used when writing structured data. Output demonstrating some kind of configuration issue, e.g. an invalid message template token. The built-in value. Property and type names. Strings. Numbers. values. All other scalar values, e.g. instances. Unrecognized literal values, e.g. instances. Level indicator. Level indicator. Level indicator. Level indicator. Level indicator. Level indicator. A console theme using the styling facilities of the class. Recommended for Windows versions prior to Windows 10. A theme using only gray, black and white. A theme in the style of the original Serilog.Sinks.Literate. A theme based on the original Serilog "colored console" sink. Construct a theme given a set of styles. Styles to apply within the theme. When is null Styling applied using the enumeration. The foreground color to apply. The background color to apply.