Skip to content

Commit 0ca5b57

Browse files
authored
Update etwlogs.md
The command doesn't work as intended. Explanation for the fix: 1. Windows requires the GUID inside quotes because it's treated as a string (the provider name) in this context. Without quotes, the command parser may interpret the braces or hyphens incorrectly. 2. Passing 0x0 as the only flag after the provider GUID is valid. Supplying two numbers like 0 0 (as in some bad examples) misleads logman, which tries to interpret the second value as outputFormat. 3. The -o trace.etl must be at the end and not mistaken for a different parameter like -f (output format), unless you're also explicitly setting -f to text or xml.
1 parent 0d5bbe6 commit 0ca5b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/manuals/engine/logging/drivers/etwlogs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ before the provider has been registered with the system.
2525
Here is an example of how to listen to these events using the logman utility program
2626
included in most installations of Windows:
2727

28-
1. `logman start -ets DockerContainerLogs -p {a3693192-9ed6-46d2-a981-f8226c8363bd} 0 0 -o trace.etl`
28+
1. `logman start -ets DockerContainerLogs -p "{a3693192-9ed6-46d2-a981-f8226c8363bd}" 0x0 -o trace.etl`
2929
2. Run your container(s) with the etwlogs driver, by adding
3030
`--log-driver=etwlogs` to the Docker run command, and generate log messages.
3131
3. `logman stop -ets DockerContainerLogs`

0 commit comments

Comments
 (0)