Enables DicomObjects logging to a user provided stream
public static void LogToStream(
System.IO.Stream ,
System.int
)
public procedure LogToStream(
: System.IO.Stream;
: System.Integer
); static;
public static function LogToStream(
: System.IO.Stream,
: System.int
);
public: static void LogToStream(
System.IO.Stream* ,
System.int
)
public:
static void LogToStream(
System.IO.Stream^ ,
System.int
)
'Declaration
Public Shared Sub LogToStream( _
ByVal As System.IO.Stream, _
ByVal As System.Integer _
)
'Usage
Dim Stream As System.IO.Stream
Dim LogLevel As System.Integer
DicomGlobal.LogToStream(Stream, LogLevel)
Parameters
- Stream
The stream to send log data to
- LogLevel
This value controls the level of details logged either to the display, or to a file.
The allowable values for log level are:
Decimal |
Hex |
|
1 |
1 |
Errors |
2 |
2 |
Warnings |
4 |
4 |
Informational Messages |
8 |
8 |
Detailed Logging |
16 |
10 |
All DICOM attributes received or read |
32 |
20 |
All DICOM attributes send or written |
64 |
40 |
Byte-Level data received, except contents of data PDUs |
128 |
80 |
Byte-level data sent, except contents of data PDUs |
256 |
100 |
All bytes received |
512 |
200 |
All bytes sent |
Target Platforms: .NET CLR 4.8 or higher