Created
October 24, 2025 19:48
-
-
Save ecesar88/0b0d692a0da25af8bf13df1592ddf497 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export const logFetchingSingleRecord = (id: string, obj?: Record<string, unknown>) => { | |
| logger({ | |
| level: LOG_TYPE.INFO, | |
| message: `Fetching client with id '${id}'`, | |
| ...(obj ? ({ | |
| object: colorizeAsJSON(obj), | |
| }) : ({})) | |
| }); | |
| } | |
| export const logFetchingAllRecords = (obj?: Record<string, unknown>) => { | |
| logger({ | |
| level: LOG_TYPE.INFO, | |
| message: `Fetching all clients`, | |
| ...(obj ? ({ | |
| object: colorizeAsJSON(obj), | |
| }) : ({})) | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment