Skip to content

Instantly share code, notes, and snippets.

@ecesar88
Created October 24, 2025 19:48
Show Gist options
  • Save ecesar88/0b0d692a0da25af8bf13df1592ddf497 to your computer and use it in GitHub Desktop.
Save ecesar88/0b0d692a0da25af8bf13df1592ddf497 to your computer and use it in GitHub Desktop.
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