1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-20 19:52:47 +02:00
Commit Graph

81 Commits

Author SHA1 Message Date
aruhi
1827916e76 Add cookie tag for logger (#921)
Thanks for your contribution 🎉
2017-05-08 08:10:11 -07:00
Vishal Rana
4b4a09fd31 Using random.String() for generating id
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-06 13:39:36 -08:00
Yusuke Komatsu
d3d0ee6527 add id (Request ID) in logger format. 2017-03-06 13:39:36 -08:00
Vishal Rana
52fa135fd5 Updated docs, exposed middleware.DefaultSkipper
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-28 11:46:43 -08:00
Vishal Rana
7025f55cab Error for non 443 port for auto tls
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-23 15:39:19 -08:00
Vishal Rana
17d66313ff Merge branch 'master' of https://github.com/labstack/echo 2017-01-21 10:21:02 -08:00
Vishal Rana
e8910be0ac Updated deps and docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-21 10:20:59 -08:00
Peter Fern
8cd3cb043b logger: Don't copy lock value in LoggerConfig.pool, use a pointer (#825)
Fixes #710 `go vet` failures
2017-01-21 10:18:34 -08:00
Vishal Rana
736d153c29 Startup banner 2017-01-14 12:49:58 -08:00
Vishal Rana
8526358e8a Fixed logger middleware error return
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 16:08:12 -08:00
Vishal Rana
f56450d8ce Fixed #821
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 09:09:51 -08:00
Vishal Rana
0696d55586 Updated logger docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 21:02:34 -08:00
Vishal Rana
ce6b1e20db Logger middleware interface (#820)
* Modified logger format

Signed-off-by: Vishal Rana <vr@labstack.com>

* Logger middleware via struct

Signed-off-by: Vishal Rana <vr@labstack.com>

* Fixed time format

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 20:07:51 -08:00
Antonio Pagano
4f1aef1469 Allows LoggerConfig to add new header, form, path and query tags (#708)
* [feature] implementing new log configuration tags for headers, form, query and path

* [refactor] merging all tests and removing path from the tags available for the logger

* [doc] updating middleware logger doc

* [tests] adding test cases for the other tags on the logger template

* [cleaning] moving h reference on tests to be a direct assignment given we dont need the reference to h anymore
2016-11-02 13:08:51 -07:00
Vishal Rana
2fbaf3a363 minor refactor, #677
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-25 08:08:46 -07:00
Vishal Rana
0f219b59ec fixed https://github.com/labstack/armor/issues/12
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-22 17:23:15 -07:00
Vishal Rana
2aec0353f5 First commit to v3, #665
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 22:56:00 -07:00
Vishal Rana
3d9d408365 Options for redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-31 20:10:14 -07:00
ipfans
0b7959a57d Rename RemoteIP to RealIP 2016-08-18 09:26:58 +08:00
Vishal Rana
27f9b326b8 Ability to skip a middleware via callback
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-27 09:34:44 -07:00
Vishal Rana
f4088cf594 Added JSON logging
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-08 17:16:03 -07:00
Vishal Rana
c6b32d5541 Added json tags to middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-18 18:53:54 -07:00
Vishal Rana
98dd8bf9e9 Added CSRF middleware, #341.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-12 17:45:00 -07:00
Vishal Rana
1afaa6ec0b Updated docs, changes to static middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 11:52:04 -07:00
Vishal Rana
c4d6f16fc4 More tags in logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 07:57:35 -07:00
Vishal Rana
6b55156cb6 Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-09 19:19:53 -07:00
Vishal Rana
ef1d00349e Fixed #505
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-09 19:13:02 -07:00
Vishal Rana
be825e0229 Refactored variable names
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-24 10:22:15 -07:00
zjx20
496ea19a80 Atomically write logs in the Logger middleware 2016-04-22 19:05:49 +08:00
Vishal Rana
1247552c9b Fixed https://github.com/labstack/echox/issues/9
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-20 07:32:51 -07:00
Victor Gaydov
f8117ac7b3 Properly disable colors in Logger middleware
Fix bug when colours are enabled if non-os.File writer is used as
output io.Writer.
2016-04-11 13:46:59 -07:00
Vishal Rana
1a7bc677da API changes from to with
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-07 21:20:50 -07:00
Vishal Rana
8b5772cf65 Proper header and MIME constants
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-06 07:29:47 -07:00
Vishal Rana
adad28012c Default bool config as false for middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-05 18:57:57 -07:00
Vishal Rana
b5d6c05101 Fixed #441, #294
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-02 14:24:51 -07:00
Vishal Rana
1113413441 Defaults for middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-31 16:30:19 -07:00
Vishal Rana
16c6f478b1 Updated README.md
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-27 10:25:31 -07:00
Vishal Rana
3a67c062de Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-23 23:05:01 -05:00
Vishal Rana
910315ec5f Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-22 22:56:29 -05:00
Vishal Rana
a66162a3d2 Logging middleware fixes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-21 17:27:14 -07:00
Vishal Rana
b47abdb9ec Fixed #424, #427
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-20 08:14:55 -07:00
Vishal Rana
c4caeb8ffb more godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-19 15:47:20 -07:00
Vishal Rana
830b4eff3f Some work on logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-18 22:25:11 -07:00
Vishal Rana
4a86175a32 Logger format
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-18 20:40:41 -07:00
Vishal Rana
abf389f91a #410, actually timestamp.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-18 20:29:53 -07:00
Vishal Rana
4d30b193ad #410, actually timestamp.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-18 20:02:02 -07:00
Vishal Rana
e159f4d7ef Making Echo#Pre actually work.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-17 13:24:52 -07:00
Vishal Rana
00bf0d651f Enhanced recover middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-14 16:14:33 -07:00
Vishal Rana
082814c776 Fixed #387
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 05:14:15 -08:00
Vishal Rana
e1d789ecbb Logger as not an interface
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-06 09:52:32 -08:00