Skip to content

Commit

Permalink
feat: added logger
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Oct 9, 2023
1 parent dafa2b7 commit 43d20cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/utils/functions/Logger/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pino from "pino";

//eslint-disable-next-line @typescript-eslint/no-unused-vars
/**
* An logger function created using pino
* @params info | debug | error | silent | ...
*/
export const logger = pino({
transport: {
target: "pino-pretty",
options: {
colorize: true,
},
},
});

0 comments on commit 43d20cc

Please sign in to comment.