etwlogs

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for windows/amd64

Overview

Package etwlogs provides a log driver for forwarding container logs as ETW events.(ETW stands for Event Tracing for Windows) A client can then create an ETW listener to listen for events that are sent by the ETW provider that we register, using the provider's GUID "a3693192-9ed6-46d2-a981-f8226c8363bd". Here is an example of how to do this using the logman utility: 1. logman start -ets DockerContainerLogs -p {a3693192-9ed6-46d2-a981-f8226c8363bd} 0 0 -o trace.etl 2. Run container(s) and generate log messages 3. logman stop -ets DockerContainerLogs 4. You can then convert the etl log file to XML using: tracerpt -y trace.etl

Each container log message generates an ETW event that also contains: the container name and ID, the timestamp, and the stream type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx logger.Context) (logger.Logger, error)

New creates a new etwLogs logger for the given container and registers the EWT provider.

Types

This section is empty.

Jump to

Keyboard shortcuts

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