MCPcopy Index your code
hub / github.com/coder/envbox / log

Method log

buildlog/coder.go:198–205  ·  view source on GitHub ↗
(level codersdk.LogLevel, output string)

Source from the content-addressed store, hash-verified

196}
197
198func (c *CoderLogger) log(level codersdk.LogLevel, output string) {
199 if err := c.client.Send(level, output); err != nil {
200 c.logger.Error(c.ctx, "send build log",
201 slog.F("log", output),
202 slog.Error(err),
203 )
204 }
205}
206
207func (c *CoderLogger) Write(p []byte) (int, error) {
208 c.Info(string(p))

Callers 2

InfoMethod · 0.95
ErrorMethod · 0.95

Calls 2

SendMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected