etw

package
v0.15.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateLogSources

func UpdateLogSources(base64EncodedJSONLogConfig string, useDefaultLogSources bool, includeGUIDs bool) (string, error)

UpdateLogSources updates the user provided log sources with the default log sources based on the configuration and returns the updated log sources as a base64 encoded JSON string. If there is an error in the process, it returns the original user provided log sources string.

Types

type EtwProvider

type EtwProvider struct {
	ProviderName string `json:"providerName,omitempty"`
	ProviderGUID string `json:"providerGuid,omitempty"`
	Level        string `json:"level,omitempty"`
	Keywords     string `json:"keywords,omitempty"`
}

type LogConfig

type LogConfig struct {
	Sources []Source `json:"sources"`
}

type LogSourcesInfo

type LogSourcesInfo struct {
	LogConfig LogConfig `json:"LogConfig"`
}

Log Sources JSON structure

func GetDefaultLogSources

func GetDefaultLogSources() LogSourcesInfo

GetDefaultLogSources returns the default log sources configuration.

type Source

type Source struct {
	Type      string        `json:"type"`
	Providers []EtwProvider `json:"providers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL