Represents a trace log stream that supports logging to different streams. More...
Inherits IDisposable.
Public Member Functions | |
TraceLogStream (LogStream innerStream, LogStream warnStream, LogStream errorStream) | |
Initializes a new instance of the TraceLogStream class. More... | |
void | Dispose () |
Disposes the TraceLogStream and its underlying streams. More... | |
void | Error (Exception message) |
Logs an exception to the ErrorStream. More... | |
void | Error (ILogSource source, string message) |
Logs an error message with a source to the ErrorStream. More... | |
void | Error (string message) |
Logs an error message to the ErrorStream. More... | |
void | Exception (Exception message) |
Logs an exception to the ErrorStream. More... | |
TraceLogStream | If (bool condition) |
Returns self if condition is true. More... | |
void | Info (ILogSource source, string message) |
Logs an info message with a source to the InfoStream. More... | |
void | Info (string message) |
Logs an info message to the InfoStream. More... | |
void | Log (ILogSource source, string message) |
Logs a message with a source to the InfoStream. More... | |
void | Log (string message) |
Logs a message to the InfoStream. More... | |
TraceLogStream | Once (ref bool flag) |
Returns self if flag is false and then sets it to true. More... | |
void | Warn (ILogSource source, string message) |
Logs a warning message with a source to the WarnStream. More... | |
void | Warn (string message) |
Logs a warning message to the WarnStream. More... | |
Public Attributes | |
readonly LogStream | ErrorStream |
Stream for logging error messages. More... | |
readonly LogStream | InfoStream |
Stream for logging informational messages. More... | |
readonly LogStream | WarnStream |
Stream for logging warning messages. More... | |
Represents a trace log stream that supports logging to different streams.
|
inline |
Initializes a new instance of the TraceLogStream class.
innerStream | The stream for informational messages. |
warnStream | The stream for warning messages. |
errorStream | The stream for error messages. |
void Quantum.TraceLogStream.Log | ( | ILogSource | source, |
string | message | ||
) |
Logs a message with a source to the InfoStream.
void Quantum.TraceLogStream.Log | ( | string | message | ) |
Logs a message to the InfoStream.
void Quantum.TraceLogStream.Info | ( | ILogSource | source, |
string | message | ||
) |
Logs an info message with a source to the InfoStream.
void Quantum.TraceLogStream.Info | ( | string | message | ) |
Logs an info message to the InfoStream.
void Quantum.TraceLogStream.Error | ( | ILogSource | source, |
string | message | ||
) |
Logs an error message with a source to the ErrorStream.
void Quantum.TraceLogStream.Error | ( | string | message | ) |
Logs an error message to the ErrorStream.
void Quantum.TraceLogStream.Error | ( | Exception | message | ) |
Logs an exception to the ErrorStream.
void Quantum.TraceLogStream.Exception | ( | Exception | message | ) |
Logs an exception to the ErrorStream.
void Quantum.TraceLogStream.Warn | ( | ILogSource | source, |
string | message | ||
) |
Logs a warning message with a source to the WarnStream.
void Quantum.TraceLogStream.Warn | ( | string | message | ) |
Logs a warning message to the WarnStream.
|
inline |
Returns self if condition is true.
|
inline |
Returns self if flag is false and then sets it to true.
|
inline |
Disposes the TraceLogStream and its underlying streams.
readonly LogStream Quantum.TraceLogStream.InfoStream |
Stream for logging informational messages.
readonly LogStream Quantum.TraceLogStream.WarnStream |
Stream for logging warning messages.
readonly LogStream Quantum.TraceLogStream.ErrorStream |
Stream for logging error messages.