Class PrefixedLogStream
Namespace: Sisk.Core.Http
Assembly: Sisk.Core.dll
Represents a log stream that prefixes log messages with a custom string.
public sealed class PrefixedLogStream : LogStream, IDisposable, IAsyncDisposable
Inheritance
object ← LogStream ← PrefixedLogStream
Implements
Inherited Members
LogStream.Flush(), LogStream.FlushAsync(), LogStream.Peek(), LogStream.StartBuffering(int), LogStream.StopBuffering(), LogStream.Close(), LogStream.ConfigureRotatingPolicy(long, TimeSpan), LogStream.WriteException(Exception), LogStream.WriteException(Exception, string?), LogStream.WriteLine(), LogStream.WriteLine(object?), LogStream.WriteLine(string), LogStream.WriteLine(string, params ReadOnlySpan<object?>), LogStream.WriteLine(string, params IEnumerable<object?>), LogStream.WriteLine(IFormatProvider?, string, params object?[]), LogStream.WriteExceptionAsync(Exception), LogStream.WriteExceptionAsync(Exception, string?), LogStream.WriteLineAsync(), LogStream.WriteLineAsync(object?), LogStream.WriteLineAsync(string), LogStream.WriteLineAsync(string, params IEnumerable<object?>), LogStream.WriteLineAsync(IFormatProvider?, string, params object?[]), LogStream.DisposeAsync(), LogStream.Dispose(), LogStream.ConsoleOutput, LogStream.Empty, LogStream.RotatingPolicy, LogStream.IsBuffering, LogStream.Disposed, LogStream.NormalizeEntries, LogStream.FilePath, LogStream.TextWriter, LogStream.Encoding, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
PrefixedLogStream(Func<string>)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function.
PrefixedLogStream(Func<string>, TextWriter)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function and text writer.
PrefixedLogStream(Func<string>, string)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function and file name.
PrefixedLogStream(Func<string>, string?, TextWriter?)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function, file name, and text writer.
Properties
Gets or sets a function that returns the prefix to be added to log messages.
Methods
Represents the method that intercepts the line that will be written to an output log before being queued for writing. This method will block if the log queue is full.
WriteLineInternalAsync(string)
Represents the asynchronous method that intercepts the line that will be written to an output log before being queued for writing.
 English
                                    English
                                 Русский
                                    Русский
                                 Português
                                    Português
                                 Español
                                    Español
                                 Deutsch
                                    Deutsch
                                 中文 (简体)
                                    中文 (简体)
                                 日本語
                                    日本語