An open API service indexing awesome lists of open source software.

https://github.com/iamdanielyin/logrusfmt

Logs time and message on the same line.
https://github.com/iamdanielyin/logrusfmt

formatters logrus

Last synced: over 1 year ago
JSON representation

Logs time and message on the same line.

Awesome Lists containing this project

README

          

# logrusfmt

Logs time and message on the same line.

Example:

```go
package main

import (
log "github.com/sirupsen/logrus"
fmt "github.com/yinfxs/logrusfmt"
)

func main() {
log.SetFormatter(&fmt.SimpleTextFormatter{})
log.WithFields(log.Fields{
"animal": "walrus",
}).Info("A walrus appears")
}
```