MCPcopy
hub / github.com/caddyserver/caddy / OpenWriter

Method OpenWriter

logging.go:277–277  ·  view source on GitHub ↗

OpenWriter opens a log for writing. The writer should be safe for concurrent use but need not be synchronous.

()

Source from the content-addressed store, hash-verified

275 // should be safe for concurrent use but need not
276 // be synchronous.
277 OpenWriter() (io.WriteCloser, error)
278}
279
280// IsWriterStandardStream returns true if the input is a

Callers 3

openWriterMethod · 0.65
newDefaultProductionLogFunction · 0.65
TestFileCreationModeFunction · 0.65

Implementers 5

StdoutWriterlogging.go
StderrWriterlogging.go
DiscardWriterlogging.go
FileWritermodules/logging/filewriter.go
NetWritermodules/logging/netwriter.go

Calls

no outgoing calls

Tested by 1

TestFileCreationModeFunction · 0.52