When using logger.WithError(err).Errorln("error!!!") print error out will generate the structure log message {"error": "something wrong", "msg": "error!!!"}. I would want to replace the default error name with other name, however, error is not in the FieldKeyMsg.
When using
logger.WithError(err).Errorln("error!!!")
print error out will generate the structure log message{"error": "something wrong", "msg": "error!!!"}
. I would want to replace the default error name with other name, however, error is not in the FieldKeyMsg.