Skip to content

Gastove/logrus-humanize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humanize

Format your logrus logs for Human Eyes.

Spits out logs like-a this:

// --- Long Format --- //

2018-11-08T10:49:28 [info]: This is the very polite log message
          Fields:
                    dance:         flhargunstow
                    power_level:   9000
2018-11-08T10:49:28 [error]: Alas, error city!
          Fields:
                    dance:         flhargunstow
                    power_level:   9000
Error: oh heavens oh no an error eep

// --- Compact Format --- //

2018-11-08T10:49:28 [info]: Now, compact!
        	power_level: 9000	dance: flhargunstow
2018-11-08T10:49:28 [error]: This is a very compact error message
        	dance: flhargunstow	power_level: 9000
Error: oh heavens oh no an error eep

About

A logrus formatter for human eyes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published