mirror of
https://github.com/labstack/echo.git
synced 2025-01-01 22:09:21 +02:00
Glide for dependency mgmt
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
28b1b9d57b
commit
6c320ca50b
4
.gitignore
vendored
4
.gitignore
vendored
@ -33,10 +33,12 @@ _testmain.go
|
|||||||
website/public
|
website/public
|
||||||
website/make
|
website/make
|
||||||
website/Makefile
|
website/Makefile
|
||||||
website/marathon*
|
|
||||||
|
|
||||||
# node.js web dependencies
|
# node.js web dependencies
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# code coverage output files
|
# code coverage output files
|
||||||
*.coverprofile
|
*.coverprofile
|
||||||
|
|
||||||
|
# glide
|
||||||
|
vendor
|
||||||
|
@ -8,7 +8,9 @@ import (
|
|||||||
"github.com/labstack/gommon/color"
|
"github.com/labstack/gommon/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
const loggerFormat = "%s %s %s %s %s %d"
|
const (
|
||||||
|
format = "%s %s %s %s %s %d"
|
||||||
|
)
|
||||||
|
|
||||||
// Logger returns a Middleware that logs requests.
|
// Logger returns a Middleware that logs requests.
|
||||||
func Logger() echo.MiddlewareFunc {
|
func Logger() echo.MiddlewareFunc {
|
||||||
@ -50,7 +52,7 @@ func Logger() echo.MiddlewareFunc {
|
|||||||
code = color.Cyan(n)
|
code = color.Cyan(n)
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Info(loggerFormat, remoteAddr, method, path, code, stop.Sub(start), size)
|
logger.Infof(format, remoteAddr, method, path, code, stop.Sub(start), size)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"baseurl": "http://labstack.com/echo",
|
"baseurl": "https://labstack.com/echo",
|
||||||
"languageCode": "en-us",
|
"languageCode": "en-us",
|
||||||
"title": "Echo",
|
"title": "Echo",
|
||||||
"canonifyurls": true,
|
"canonifyurls": true,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
title: Index
|
title: Index
|
||||||
---
|
---
|
||||||
|
|
||||||
# Echo
|
# ![Echo](/images/echo.svg) Echo
|
||||||
|
|
||||||
A fast and unfancy micro web framework for Go.
|
A fast and unfancy micro web framework for Go.
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<header class="mdl-layout__header">
|
<header class="mdl-layout__header">
|
||||||
<div class="mdl-layout__header-row">
|
<div class="mdl-layout__header-row">
|
||||||
<a href="/" class="mdl-navigation__link mdl-layout-title">
|
<a href="https://labstack.com" class="mdl-navigation__link mdl-layout-title">
|
||||||
{{ .Site.Title }}
|
<img src="/images/logo.svg" alt="LabStack">
|
||||||
</a>
|
</a>
|
||||||
<div class="mdl-layout-spacer"></div>
|
<div class="mdl-layout-spacer"></div>
|
||||||
<nav class="mdl-navigation mdl-layout--large-screen-only">
|
<nav class="mdl-navigation mdl-layout--large-screen-only">
|
||||||
<a href="https://github.com/labstack/echo" class="mdl-navigation__link">
|
<a href="https://github.com/labstack/echo" class="mdl-navigation__link">
|
||||||
<i class="fa fa-github fa-lg"></i> GitHub
|
<i class="fa fa-github fa-2x"></i>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user