次の方法で共有


desktop10:CustomDesktopEventLog

カスタム イベント ログを定義します。

要素の階層

<パッケージ>

    <拡張機能>

         <desktop10:Extension>

              <desktop10:CustomDesktopEventLog>

構文

<desktop10:CustomDesktopEventLog
  CustomEvenLogName = 'An optional string with a value between 1 and 32767 characters in length that cannot start or end with a whitespace character. May contain whitespace characters in between the first and last values.'
  DisplayNameFile = 'An optional string with a value between 1 and 256 characters in length that must end with ".dll" and cannot contain these characters: <, >, :, ", |, ?, or *.'
  DisplayNameID = 'An optional unsigned integer value. A number between -2147483648 and 2147483647.'
  MaxSize = 'An optional unsigned integer value. A number between -2147483648 and 2147483647.'
  PrimaryModule = 'An optional string with a value between 1 and 32767 characters in length that cannot start or end with a whitespace character. May contain whitespace characters in between the first and last values.'
  Retention = 'An optional unsigned integer value. A number between -2147483648 and 2147483647.' >

  <!-- Child Elements -->
  desktop10:CustomEventSource{0, 16384}

</desktop10:CustomDesktopEventLog>

キー

{} 特定の出現範囲

属性と要素

属性

属性 説明 データ型 必須 既定値
CustomEventLogName カスタム イベント ログの名前。 レジストリ キー名として使用されます。 空白文字で開始または終了できない長さが 1 ~ 32767 文字の省略可能な文字列。 先頭と最後の値の間に空白文字を含めることができます。 いいえ
DisplayNameFile このイベント ログの名前に使用する言語文字列を含む DLL ファイル。 1 から 256 文字の長さの値を持つ省略可能な文字列。末尾が でなければならず.dll、、、"?|または *の文字<>:を含めることはできません。 いいえ
DisplayNameID イベント ログ名に使用する DisplayNameFile 内の言語文字列の ID 番号。 省略可能な符号なし整数値。 -2147483648 と 2147483647 の間の数値。 いいえ
MaxSize イベント ログ ファイルの最大サイズ (バイト単位)。 省略可能な符号なし整数値。 -2147483648 と 2147483647 の間の数値。 いいえ
PrimaryModule イベント ソースのサブキー内のエントリの既定値を含むサブキーの名前。 空白文字で開始または終了できない長さが 1 ~ 32767 文字の省略可能な文字列。 先頭と最後の値の間に空白文字を含めることができます。 いいえ
保持 ログが MaxSize に達したときにイベントを上書きするか破棄するかを指定します。 この値が 0 の場合、イベントのレコードは常に上書きされます。 この値が 0 以外の値の場合、レコードは上書きされません。 ログ ファイルが最大サイズに達したら、ログを手動でクリアする必要があります。それ以外の場合、新しいイベントは破棄されます。 既定値は 0 です。 省略可能な符号なし整数値。 -2147483648 と 2147483647 の間の数値。 いいえ

子要素

子要素 説明
desktop10:CustomEventSource カスタム イベント ログ内のイベント ソースを定義します。

親要素

親要素 説明
desktop10:Extension アプリの機能拡張ポイントを宣言します。

注釈

カスタム イベント ログの詳細については、「 Eventlog Key」を参照してください。

必要条件

Item
desktop10 http://schemas.microsoft.com/appx/manifest/desktop/windows10/10
Minimum OS Version Windows 11 バージョン 22H2 (ビルド 22621)