MCPcopy Create free account
hub / github.com/devspace-sh/devspace / WriteString

Method WriteString

pkg/util/log/file_logger.go:304–313  ·  view source on GitHub ↗
(level logrus.Level, message string)

Source from the content-addressed store, hash-verified

302}
303
304func (f *fileLogger) WriteString(level logrus.Level, message string) {
305 f.m.Lock()
306 defer f.m.Unlock()
307
308 if f.level < logrus.InfoLevel {
309 return
310 }
311
312 _, _ = f.logger.Out.Write([]byte(stripEscapeSequences(message)))
313}
314
315func stripEscapeSequences(str string) string {
316 return stripansi.Strip(strings.TrimSpace(str))

Callers

nothing calls this directly

Calls 4

stripEscapeSequencesFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected