Constructor PrefixedLogStream
PrefixedLogStream(Func<string>)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function.
public PrefixedLogStream(Func<string> prefixFunction)
Parameters
PrefixedLogStream(Func<string>, TextWriter)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function and text writer.
public PrefixedLogStream(Func<string> prefixFunction, TextWriter tw)
Parameters
prefixFunctionFunc<string>A function that returns the prefix to be added to log messages.
twTextWriterThe text writer to write log messages to.
PrefixedLogStream(Func<string>, string)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function and file name.
public PrefixedLogStream(Func<string> prefixFunction, string filename)
Parameters
prefixFunctionFunc<string>A function that returns the prefix to be added to log messages.
filenamestringThe name of the file to write log messages to.
PrefixedLogStream(Func<string>, string?, TextWriter?)
Initializes a new instance of the PrefixedLogStream class with the specified prefix function, file name, and text writer.
public PrefixedLogStream(Func<string> prefixFunction, string? filename, TextWriter? tw)
Parameters
prefixFunctionFunc<string>A function that returns the prefix to be added to log messages.
filenamestringThe name of the file to write log messages to, or
nullto write to the text writer.twTextWriterThe text writer to write log messages to, or
nullto write to the file.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語