1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-17 01:43:02 +02:00

Updated docs, changes to static middleware config

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-05-10 11:52:04 -07:00
parent 799c6cff2a
commit 1afaa6ec0b
11 changed files with 41 additions and 44 deletions

View File

@ -19,7 +19,7 @@ import (
type (
// LoggerConfig defines the config for logger middleware.
LoggerConfig struct {
// Format is the log format which can be constructed using the following tags:
// Log format which can be constructed using the following tags:
//
// - time_rfc3339
// - id (Request ID - Not implemented)
@ -38,11 +38,11 @@ type (
//
// Example "${remote_ip} ${status}"
//
// Optional, with default value as `DefaultLoggerConfig.Format`.
// Optional. Default value DefaultLoggerConfig.Format.
Format string
// Output is the writer where logs are written.
// Optional with default value as os.Stdout.
// Output is a writer where logs are written.
// Optional. Default value os.Stdout.
Output io.Writer
template *fasttemplate.Template