MCPcopy Index your code
hub / github.com/containerd/nerdctl / LogConfigFilePath

Function LogConfigFilePath

pkg/logging/logging.go:158–160  ·  view source on GitHub ↗

LogConfigFilePath returns the path of log-config.json

(dataStore, ns, id string)

Source from the content-addressed store, hash-verified

156
157// LogConfigFilePath returns the path of log-config.json
158func LogConfigFilePath(dataStore, ns, id string) string {
159 return filepath.Join(dataStore, "containers", ns, id, "log-config.json")
160}
161
162// LoadLogConfig loads the log-config.json for the afferrent container store
163func LoadLogConfig(dataStore, ns, id string) (LogConfig, error) {

Callers 3

generateLogConfigFunction · 0.92
LoadLogConfigFunction · 0.85
loggerFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected