MCPcopy
hub / github.com/purpleidea/mgmt / Logf

Method Logf

pgraph/pgraph.go:535–539  ·  view source on GitHub ↗

Logf logs a printed representation of the graph with the logf of your choice. This is helpful to ensure each line of logged output has the prefix you want.

(logf func(format string, v ...interface{}))

Source from the content-addressed store, hash-verified

533// Logf logs a printed representation of the graph with the logf of your choice.
534// This is helpful to ensure each line of logged output has the prefix you want.
535func (obj *Graph) Logf(logf func(format string, v ...interface{})) {
536 for _, x := range strings.Split(obj.Sprint(), "\n") {
537 logf("%s", x)
538 }
539}
540
541// IncomingGraphVertices returns an array (slice) of all directed vertices to
542// vertex v (??? -> v). OKTimestamp should probably use this.

Callers 15

AddVertexMethod · 0.95
AddEdgeMethod · 0.95
DeleteVertexMethod · 0.95
DeleteEdgeMethod · 0.95
TestTopoSort3Function · 0.80
TestReachability0Function · 0.80
TestReachability1Function · 0.80
TestReachability2Function · 0.80
TestReachability3Function · 0.80
TestReachability4Function · 0.80
TestSort0Function · 0.80
TestSprint1Function · 0.80

Calls 1

SprintMethod · 0.95

Tested by 15

TestTopoSort3Function · 0.64
TestReachability0Function · 0.64
TestReachability1Function · 0.64
TestReachability2Function · 0.64
TestReachability3Function · 0.64
TestReachability4Function · 0.64
TestSort0Function · 0.64
TestSprint1Function · 0.64
TestInstance0Function · 0.64
TestInstance1Function · 0.64
TestCluster1Function · 0.64
TestAstFunc1Function · 0.64