Gin logging (#165)

* start messing around with logger

* more messing about

* fix error with instance not created on startup (#156)

* set logger

* log user agent

* finalize logging

* go fmt

* start messing around with logger

* more messing about

* set logger

* log user agent

* finalize logging

* go fmt
This commit is contained in:
tobi 2021-08-27 13:26:45 +02:00 committed by GitHub
commit add6eb6e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 93 additions and 22 deletions

View file

@ -46,6 +46,7 @@ func New(level string) (*logrus.Logger, error) {
log.SetFormatter(&logrus.TextFormatter{
DisableColors: true,
ForceQuote: true,
FullTimestamp: true,
})