Quantum 3
3.0.9
Represents a debug log stream that supports logging to different streams. More...
Inherits IDisposable.
Public Member Functions | |
| DebugLogStream (LogStream innerStream, LogStream warnStream, LogStream errorStream) | |
| Initializes a new instance of the DebugLogStream class. More... | |
| void | Dispose () |
| Disposes the DebugLogStream 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... | |
| DebugLogStream | 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... | |
| DebugLogStream | 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 debug log stream that supports logging to different streams.
|
inline |
Initializes a new instance of the DebugLogStream class.
| innerStream | The stream for informational messages. |
| warnStream | The stream for warning messages. |
| errorStream | The stream for error messages. |
| void Quantum.DebugLogStream.Log | ( | ILogSource | source, |
| string | message | ||
| ) |
Logs a message with a source to the InfoStream.
| void Quantum.DebugLogStream.Log | ( | string | message | ) |
Logs a message to the InfoStream.
| void Quantum.DebugLogStream.Info | ( | ILogSource | source, |
| string | message | ||
| ) |
Logs an info message with a source to the InfoStream.
| void Quantum.DebugLogStream.Info | ( | string | message | ) |
Logs an info message to the InfoStream.
| void Quantum.DebugLogStream.Error | ( | ILogSource | source, |
| string | message | ||
| ) |
Logs an error message with a source to the ErrorStream.
| void Quantum.DebugLogStream.Error | ( | string | message | ) |
Logs an error message to the ErrorStream.
| void Quantum.DebugLogStream.Error | ( | Exception | message | ) |
Logs an exception to the ErrorStream.
| void Quantum.DebugLogStream.Exception | ( | Exception | message | ) |
Logs an exception to the ErrorStream.
| void Quantum.DebugLogStream.Warn | ( | ILogSource | source, |
| string | message | ||
| ) |
Logs a warning message with a source to the WarnStream.
| void Quantum.DebugLogStream.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 DebugLogStream and its underlying streams.
| readonly LogStream Quantum.DebugLogStream.InfoStream |
Stream for logging informational messages.
| readonly LogStream Quantum.DebugLogStream.WarnStream |
Stream for logging warning messages.
| readonly LogStream Quantum.DebugLogStream.ErrorStream |
Stream for logging error messages.