12 Commits

Author SHA1 Message Date
Marwan Sulaiman
34f55365a2 always use request logging middleware (#1522)
* always use request logging middleware

* reads better

* rm http-url as it is redundant

* gopls being redundant

* add color name
2020-01-20 18:25:48 -05:00
marpio
c3d1d14d23 Use default conf values if file not found (#1022)
* default conf if no file provided

* move to the config pkg

* rm default config path

* rm log
2019-02-14 11:32:53 -08:00
Marwan Sulaiman
5870aeee8d Remove Buffalo (#1010)
* Remove Buffalo

* gofmt

* pr fixes

* fix subrouter

* bring back secure middleware + pr fixes

* better place for subrouter

* vendor
2018-12-22 20:24:25 -05:00
Nafis Faysal
dd801d86b1 Refactoring code to improve HTTP status code (#1005)
* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code

* refactoring code to improve HTTP status code
2018-12-20 22:15:03 +01:00
marpio
3061da5ee2 pass custom timestamp format to the log formatter (#920)
* pass custom timestmp format to the formatter

* update calls params

* review feedback - introduce default format const

* add comment

* review feedback - cloud formatter should not be overwritable
2018-11-16 15:52:42 -05:00
Brent Pendergraft
3c223dcfca add new log context middleware to store log entries in the context (#844)
* add new log context middleware to store log entries in the context

* replace LogEntryMiddleware and add NoOpLogger

* fix failing test

* move middleware to top level

* actually move middleware to top level
2018-11-06 08:46:51 -05:00
Marwan Sulaiman
622aba0fe1 Athens: disable buffalo logger in production (#516)
* Athens: disable buffalo logger in production

* fix gofmt

* pkg/log: pass down the level instead of environment

* pkg/log: remove nop writer

* pkg/log: use indepnedent buffalo log level
2018-08-20 13:23:27 -04:00
Marwan Sulaiman
211eb9310c pkg/log: log msg if no data given (#484) 2018-08-15 09:10:54 -04:00
Marwan Sulaiman
c41e18001b pkg/log: we do have our Error struct now (#394) 2018-08-03 15:16:35 -04:00
Marwan Sulaiman
0853f073f2 Athens: introduce pkg/errors (#320)
* Athens: introduce pkg/errors

* errors: fix Ops loop

* pkg/errors: introduce M and V types to get rid of unstable parsing

* fix build

* errors: fix text + add tests

* pr updates
2018-07-25 13:18:58 -05:00
Marwan Sulaiman
a033789877 Athens: add log tests to cloud formatters (#289)
* Athens: add log tests to cloud formatters

* log: consistent variable mutation in tests

* log: add testify instead of standard library
2018-07-17 19:23:19 -04:00
Marwan Sulaiman
650577a6da Athens: introduce log package (#274)
* Athens: introduce log package

* log: add buffalo doc note

* log: add cloud runtime based formatting

* log: add log level to constructor

* log: remove nil err from fmtBuffaloErr

* log: use switch statement in buffaloFormatter.Format

* log: rearrange .go files

* log: change cloudruntime development to none

* Olympus: add buffalo logger
2018-07-15 11:13:02 -04:00