Last active
June 4, 2022 18:33
-
-
Save jheise/a4d02a5b562d3b51a74476011ac41244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func LogRecord(r Record) error { | |
r_json, err := json.Marshal(r) | |
if err != nil { | |
return err | |
} | |
logger.Println(string(r_json)) | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment