Factory logger setup for virtcontainers runtime.
// Source: https://github.com/kata-containers/kata-containers | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) 2018 HyperHQ Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
package factory
import (
"context"
vc "github.com/kata-containers/kata-containers/src/runtime/virtcontainers"
"github.com/sirupsen/logrus"
)
// factoryTracingTags defines tags for the trace span
var factoryTracingTags = map[string]string{
"source": "runtime",
"package": "factory",
"subsystem": "factory",
}
var factoryLogger = logrus.FieldLogger(logrus.New())
// Config is a collection of VM factory configurations.
type Config struct {
TemplatePath string
VMCacheEndpoint stri
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key