roller
roller copied to clipboard
refactor logging utils as Logger object wrapper
PrettifyErrorIfExists
is over complicated and not quite following go idiomatic
I think it's makes more sense to have logger object, that sets all the emojis and prettify, and called in a standard way
err := somefunc()
if err != nil {
prettifier.Error(err)
//Or
prettifier.Fatal(err)
}