DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomGlobal Class / LogToLogger Method

An ILogger object provided by user

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



In This Topic
    LogToLogger Method
    In This Topic
    Enables DicomObjects logging to a user provided stream
    Syntax
    'Declaration
     
    
    Public Shared Sub LogToLogger( _
       ByVal Logger As ILogger, _
       ByVal LogLevel As Integer _
    ) 
    'Usage
     
    
    Dim Logger As ILogger
    Dim LogLevel As Integer
     
    DicomGlobal.LogToLogger(Logger, LogLevel)
    public static void LogToLogger( 
       ILogger Logger,
       int LogLevel
    )
    public:
    static void LogToLogger( 
       ILogger^ Logger,
       int LogLevel
    ) 

    Parameters

    Logger

    An ILogger object provided by user

    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
    Remarks

    The last two levels should NOT be used routinely when images are being sent or received, as the quality of log data becomes unmanageable, and the system will probably run so slowly that connecting equipment will time-out.

    Other bits in the higher word are reserved for Medical Connections' use or future expansion.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also