MCPcopy Index your code
hub / github.com/linuxkit/linuxkit / Write

Method Write

pkg/logwrite/logwrite.go:65–72  ·  view source on GitHub ↗

Write appends a message to the log file

(m *LogMessage)

Source from the content-addressed store, hash-verified

63
64// Write appends a message to the log file
65func (l *LogFile) Write(m *LogMessage) error {
66 s := m.String() + "\n"
67 _, err := io.WriteString(l.File, s)
68 if err == nil {
69 l.BytesWritten += len(s)
70 }
71 return err
72}
73
74// Close a log file
75func (l *LogFile) Close() error {

Callers 7

mainFunction · 0.95
sysctlFunction · 0.45
DumpMethod · 0.45
sysfsFunction · 0.45
binfmtFunction · 0.45
readLogFromFdFunction · 0.45
StreamLogsFunction · 0.45

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected