MCPcopy Create free account
hub / github.com/kataras/iris / SetOutput

Method SetOutput

middleware/accesslog/log.go:163–163  ·  view source on GitHub ↗

SetOutput should inject the accesslog's direct output, if this "dest" is used then the Formatter should manually control its concurrent use.

(dest io.Writer)

Source from the content-addressed store, hash-verified

161 // if this "dest" is used then the Formatter
162 // should manually control its concurrent use.
163 SetOutput(dest io.Writer)
164 // Format should print the Log.
165 // Returns nil error on handle successfully,
166 // otherwise the log will be printed using the default formatter

Callers 7

loggerFunction · 0.65
mainFunction · 0.65
SetOutputMethod · 0.65
TestJSONLoggerFunction · 0.65
SetFormatterMethod · 0.65
TestAccessLogSetOutputFunction · 0.65
TestRegisterRuleFunction · 0.65

Implementers 6

customFormatter_examples/logging/request-logger/acces
Slack_examples/logging/request-logger/acces
CSVmiddleware/accesslog/csv.go
JSONmiddleware/accesslog/json.go
noOpFormattermiddleware/accesslog/accesslog_test.go
Templatemiddleware/accesslog/template.go

Calls

no outgoing calls

Tested by 4

loggerFunction · 0.52
TestJSONLoggerFunction · 0.52
TestAccessLogSetOutputFunction · 0.52
TestRegisterRuleFunction · 0.52