roller icon indicating copy to clipboard operation
roller copied to clipboard

refactor logging utils as Logger object wrapper

Open mtsitrin opened this issue 1 year ago • 0 comments

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)
}

mtsitrin avatar Jul 06 '23 07:07 mtsitrin