Export (0) Print
Expand All

LevelType Complex Type

Defines a severity value that determines the verbosity of the events being logged.

<xs:complexType name="LevelType"
    mixed="true"
>
    <xs:simpleContent>
        <xs:extension
            base="xs:string"
        >
            <xs:attribute name="name"
                type="QName"
                use="required"
             />
            <xs:attribute name="symbol"
                type="CSymbolType"
                use="optional"
             />
            <xs:attribute name="value"
                type="UInt8Type"
                use="required"
             />
            <xs:attribute name="message"
                type="strTableRef"
                use="optional"
             />
        </xs:extension>
    </xs:simpleContent>
</xs:complexType>

Attributes

NameTypeDescription
message strTableRef

The localized display name for the level. The message string references a localized string in the stringTable section of the manifest.

nameQName

The name to assign to this level. This name must be unique within the scope of the provider.

symbol CSymbolType

The symbol to use to reference the level in your application. The Message Compiler (MC.exe) uses the symbol to create a constant for the level in the header file that the compiler generates. If you do not specify a symbol, the compiler generates one for you.

value UInt8Type

The level value. You can specify values in the range 16 to 255. For predefined level values, see Remarks.

Remarks

The following are the predefined level values that you can use. These values are defined in the Winmeta.xml file that is included in the Windows SDK.

NameValue SymbolDescription
win:Critical1WINEVENT_LEVEL_CRITICAL

Identifies an abnormal exit or termination event.

win:Error2WINEVENT_LEVEL_ERROR

Identifies a severe error event.

win:Warning3WINEVENT_LEVEL_WARNING

Identifies a warning event such as an allocation failure.

win:Informational 4WINEVENT_LEVEL_INFO

Identifies a non-error event such as an entry or exit event.

win:Verbose5WINEVENT_LEVEL_VERBOSE

Identifies a detailed trace event.

 

Higher numbers imply that you get lower levels as well. For example, if you specify win:Warning, you receive all warning, error, and critical events.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

 

 

Community Additions

ADD
Show:
© 2014 Microsoft