Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
using pino pretty w/ decent defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ildella committed Aug 1, 2023
1 parent 9d78455 commit 858fcfa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
1 change: 0 additions & 1 deletion http/fastify-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = ({
logLevel = 'debug',
loggerTransportTarget = 'pino-pretty',
name,
// loggerTransportTarget = '@fastify/one-line-logger',
} = {}) => {
const instance = fastify({
ignoreTrailingSlash: true,
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moar-js",
"version": "0.3.1",
"version": "0.3.2fa",
"description": "Simple JavaScript files I use across projects",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -33,13 +33,13 @@
},
"devDependencies": {
"@fastify/cors": "8.3.0",
"@fastify/one-line-logger": "1.2.0",
"@fastify/sensible": "5.2.0",
"axios": "1.4.0",
"depcheck": "1.4.3",
"exstream.js": "0.23.0",
"fastify": "4.20.0",
"fastify": "4.21.0",
"moar-js-dev": "1.0.1",
"pino-pretty": "10.2.0",
"tracer": "1.1.6",
"ws": "8.13.0"
},
Expand All @@ -49,7 +49,8 @@
"@fastify/sensible": "5.2.0",
"axios": "1.4.0",
"exstream.js": "0.23.0",
"fastify": "4.20.0",
"fastify": "4.21.0",
"pino-pretty": "10.2.0",
"tracer": "1.1.6",
"ws": "8.13.0"
}
Expand Down
23 changes: 8 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,6 @@
dependencies:
fast-json-stringify "^5.7.0"

"@fastify/one-line-logger@1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@fastify/one-line-logger/-/one-line-logger-1.2.0.tgz#fc89c1c04daab8cb381126cc716ab1a233cb5237"
integrity sha512-vz1IX5mRELLPT/hcGjlHACrm1aSpu9QfjzL0o8KQk2Tas8i14iju6rg9SxMdUD/XU3JUxa4z6RCv+yV/h5oZqw==
dependencies:
pino-pretty "^10.0.0"

"@fastify/sensible@5.2.0":
version "5.2.0"
resolved "https://registry.yarnpkg.com/@fastify/sensible/-/sensible-5.2.0.tgz#fb346596597c2a2ebed6e747ac4beb6707843bae"
Expand Down Expand Up @@ -1884,10 +1877,10 @@ fastify-plugin@^4.0.0:
resolved "https://registry.yarnpkg.com/fastify-plugin/-/fastify-plugin-4.5.1.tgz#44dc6a3cc2cce0988bc09e13f160120bbd91dbee"
integrity sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==

fastify@4.20.0:
version "4.20.0"
resolved "https://registry.yarnpkg.com/fastify/-/fastify-4.20.0.tgz#d796c7433ac64b83a666350dc8b57e1b2517c116"
integrity sha512-zWWi5KGAb1YZ6fyrnFnA1CA1EZHkGM6YuELgB3QpS3l4lLRy14W1cc16b4KGPH/zQ98WCSdS+T41JkHY3eq1oA==
fastify@4.21.0:
version "4.21.0"
resolved "https://registry.yarnpkg.com/fastify/-/fastify-4.21.0.tgz#82f4272310c0fb7733a1a70605c57bdd1de938f2"
integrity sha512-tsu4bcwE4HetxqW8prA5fbC9bKHMYDp7jGEDWyzK1l90a3uOaLoIcQbdGcWeODNLVJviQnzh1wvIjTZE3MJFEg==
dependencies:
"@fastify/ajv-compiler" "^3.5.0"
"@fastify/error" "^3.2.0"
Expand Down Expand Up @@ -3173,10 +3166,10 @@ pino-abstract-transport@^1.0.0, pino-abstract-transport@v1.0.0:
readable-stream "^4.0.0"
split2 "^4.0.0"

pino-pretty@^10.0.0:
version "10.1.0"
resolved "https://registry.yarnpkg.com/pino-pretty/-/pino-pretty-10.1.0.tgz#d6917ca014338e56b4e6442fcf7dea8d83a4b081"
integrity sha512-9gAgVHCVTEq0ThcjoXkOICYQgdqh1h90WSuVAnNeCrRrefJInUvMbpDfy6PlsI29Nbu9UW9CGkUHztrR1A9N+A==
pino-pretty@10.2.0:
version "10.2.0"
resolved "https://registry.yarnpkg.com/pino-pretty/-/pino-pretty-10.2.0.tgz#c674a153e15c08d7032a826d0051d786feace1d9"
integrity sha512-tRvpyEmGtc2D+Lr3FulIZ+R1baggQ4S3xD2Ar93KixFEDx6SEAUP3W5aYuEw1C73d6ROrNcB2IXLteW8itlwhA==
dependencies:
colorette "^2.0.7"
dateformat "^4.6.3"
Expand Down

0 comments on commit 858fcfa

Please sign in to comment.