1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

Better documentation for the Application#Logger()

Former-commit-id: 7d70c7ffba9ae6a94b600b85b078714dd943a7da
This commit is contained in:
kataras
2017-08-02 04:22:15 +03:00
parent 516dc14b1a
commit d664f3f0d6
4 changed files with 57 additions and 21 deletions

View File

@@ -70,9 +70,8 @@ func New(t *testing.T, app *iris.Application, setters ...OptionSetter) *httpexpe
setter.Set(conf)
}
// disable logger by setting it to the "Panic" level, iris never uses this
// so it will never print.
app.Logger().Level = 0
// disable the logger
app.Logger().SetLevel("disable")
app.Build()
testConfiguration := httpexpect.Config{