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
Vishal Rana
19d51dad4c
Static as middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-18 22:50:40 -08:00
Vishal Rana
65fcca2ce3
Middleware interface
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-07 23:02:37 -08:00
Vishal Rana
f27de9a804
Fixed logging
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-04 19:29:49 -08:00
Vishal Rana
dbd1e8e230
Separated recipes from the main repo
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-01-09 11:00:13 -08:00
Vishal Rana
33d8813eb5
Revert "Revert "Fixed Request.Out
""
...
This reverts commit 72050d765b
.
2015-12-21 15:20:49 -08:00
Vishal Rana
72050d765b
Revert "Fixed Request.Out
"
...
This reverts commit cced590a16
.
2015-12-21 15:18:53 -08:00
Vishal Rana
cced590a16
Fixed Request.Out
...
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2015-12-21 15:18:03 -08:00
Vishal Rana
0884290766
Added X() method to return context
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-04 08:13:26 -08:00
Vishal Rana
72459fe299
Step towards v2
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-03 17:23:53 -08:00
Vishal Rana
9650c39055
Bumped to v1.3
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-01 15:06:18 -08:00
Vishal Rana
4f996419e1
Fixed #255
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-20 19:39:35 -08:00
Vishal Rana
143f563734
Moved code around
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-21 15:11:01 -07:00
Mark Bates
b02e78b749
Fixed bug where IP address wasn't showing up in log files. Also added
...
some tests for the Logger middleware.
2015-10-21 16:39:51 -04:00