Skip to content

Commit

Permalink
Add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Sep 6, 2024
1 parent 5069846 commit 3fd2600
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
32 changes: 11 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
"@kubernetes/client-node": "^0.21.0",
"fastify": "^4.28.1",
"pino": "^9.4.0",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pino, { LoggerOptions } from "pino";

function getLogger(opts: Pick<LoggerOptions, "level">) {
return pino(opts);
}

0 comments on commit 3fd2600

Please sign in to comment.