1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00
This commit is contained in:
Makis Maropoulos
2016-06-18 01:11:03 +03:00
parent 5d369b7c73
commit 5060cf4f5e
6 changed files with 15 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ func (l *loggerMiddleware) printf(format string, a ...interface{}) {
}
}
// Default returns the logger middleware as Handler with the default settings
// New returns the logger middleware as HandlerFunc with the default settings if second parameter is not passed
func New(theLogger *logger.Logger, options ...Options) iris.HandlerFunc {
if theLogger == nil {
theLogger = logger.New(config.DefaultLogger())