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

Method Close

pkg/logwrite/logwrite.go:75–77  ·  view source on GitHub ↗

Close a log file

()

Source from the content-addressed store, hash-verified

73
74// Close a log file
75func (l *LogFile) Close() error {
76 return l.File.Close()
77}
78
79// Rotate closes the current log file, rotates the files and creates an empty log file.
80func (l *LogFile) Rotate(maxLogFiles int) error {

Callers 15

mainFunction · 0.95
mainFunction · 0.45
sysctlFunction · 0.45
RotateMethod · 0.45
sysfsFunction · 0.45
deviceSizeFunction · 0.45
rereadPartitionsFunction · 0.45
handleSSHMethod · 0.45
scalewayGetUserdataFunction · 0.45
mainFunction · 0.45
binfmtFunction · 0.45
rtcReadTimeFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestFiniteFunction · 0.36
TestFinite2Function · 0.36
loopbackFunction · 0.36