{"_id":"@apartmentlist/js-trace-logger","_rev":"5-90f595c8d116a267bf449b7984172fa1","name":"@apartmentlist/js-trace-logger","dist-tags":{"latest":"0.6.0"},"versions":{"0.4.1":{"name":"@apartmentlist/js-trace-logger","version":"0.4.1","description":"Logger outputs messages with Trace ID","author":{"name":"Takashi Mizohata","email":"tmizohata@apartmentlist.com"},"license":"MIT","main":"dist/cjs/logger","es2015":"dist/esm2015/logger.js","typings":"types/logger.d.ts","scripts":{"deploy":"npm run lint && npm run test && npm run build && npm publish --access public","deploy:dry-run":"npm publish --access public --dry-run","build":"npm run build:clean && npm run build:all","build:clean":"rm -rf dist && mkdir dist","build:all":"npm run build:cjs && npm run build:es2015 && npm run build:types","build:cjs":"tsc --project tsconfig.cjs.json","build:es2015":"tsc --project tsconfig.esm2015.json","build:types":"tsc --project tsconfig.types.json","lint":"eslint src/**","test":"CHOMA_SEED=$(date +%s) TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha --require ts-node/register --require choma 'test/**/*.test.ts'","docs":"typedoc --out docs src"},"dependencies":{"dd-trace":"^0.24.2","stack-utils":"^2.0.2"},"devDependencies":{"@types/mocha":"^8.0.3","@types/node":"^14.6.4","@types/stack-utils":"^1.0.1","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","choma":"^1.2.1","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mocha":"^8.1.3","opentracing":"^0.14.4","ts-node":"^8.10.2","tsunit.external":"^2.1.1","typedoc":"^0.19.0","typescript":"^4.0.2"},"gitHead":"c33ec6587d4b374ba144d6291a0f931fb593f6b9","_id":"@apartmentlist/js-trace-logger@0.4.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.8","dist":{"integrity":"sha512-e41zxU8IRFHZw4cSsxrzMui1mpjVJFUYWMwQ/BB1x5hBkcn5FMQAZLJUy94D65kcUxVgduby59n71woXaaAhEg==","shasum":"da8f8858b613a4af30082822110bbf365be243f1","tarball":"https://registry.npmjs.org/@apartmentlist/js-trace-logger/-/js-trace-logger-0.4.1.tgz","fileCount":23,"unpackedSize":54744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbOfCCRA9TVsSAnZWagAAzQUP/RXhnb7mdynWrwkGzbEt\n4lrwahaiFgpj+CYrsAxkfpZ92a8AvAfqVhYJP/RFJPzOCEJuQfEfEOgXKzhn\nbe2UImFKoapuVQil//MBOEIiQquJD6QE7Osgn/+jVShAdv0Aixt3Ufj14QQ0\nULbQxJwOCFhE0C8/KeR3sFgw5Lollrq2Cp5lg9mZHmJBmGAaOGc0hNTmb+v4\n7catsLxxkeAEstsFpz4zdVzXBNaLirYH2JP5B7F3/wfYtzYQatnSkSnWL5ku\n7mJJffVdq6xc3AwP7iib+IJobL88JMJ9aU+Fvk6fOfzpz5szDLxbeBYoocEs\nfw+Z6ZtNKHCRhupuRIw6iBeeKYp0GinK5JOwpxeE8CCUW4P5IX519sNHl3ZC\n6ojrIxGBDG1JH0Ka9jzDWw6IG2i4dSIzTMpSsDdehMcs/QNqSfO8CJxyt31Y\nwWMIeOYfHc443YGgcTea1LkqqZbrfeU16BMWIbpI+YX0NGRvph8oLpZgH5b/\nP4vV71qw0f1X+++MBIjKS0ZIZJ3m8QLryiEGc0j4qZ4K0hEQweyDqwnX+Lf1\n18uMVAnpSz20vOFxjEl2K1UYj66Gr0+jclCeLlJnXn2iMOCY/NmKhgxP+Mn7\nqmHbRixZGzk5GYfheCW/4YU5peSZiWCaMyRxKRBoBJjuY+ocD1d+10XSjtrB\nqdr/\r\n=PL+j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKUxVKpxLwuAZ0UXsousT2F9kaqH9Rgx7PfwM7Ksk6/AiAli9IagWwlbtHWJbm88gKOLdVLMFZGNkYsB0BN00kN0g=="}]},"maintainers":[{"name":"beatak","email":"beatak@gmail.com"},{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"}],"_npmUser":{"name":"beatak","email":"beatak@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-trace-logger_0.4.1_1600972737581_0.6648655926052425"},"_hasShrinkwrap":false},"0.5.0":{"name":"@apartmentlist/js-trace-logger","version":"0.5.0","description":"Logger outputs messages with Trace ID","author":{"name":"Takashi Mizohata","email":"tmizohata@apartmentlist.com"},"license":"MIT","main":"dist/cjs/logger","es2015":"dist/esm2015/logger.js","typings":"types/logger.d.ts","repository":{"type":"git","url":"git+https://github.com/apartmentlist/js-trace-logger.git"},"scripts":{"deploy":"npm install && npm run lint && npm run test && npm run build && npm publish --access public","deploy:dry-run":"npm publish --access public --dry-run","build":"npm run build:clean && npm run build:all","build:clean":"rm -rf dist && mkdir dist","build:all":"npm run build:cjs && npm run build:es2015 && npm run build:types","build:cjs":"tsc --project tsconfig.cjs.json","build:es2015":"tsc --project tsconfig.esm2015.json","build:types":"tsc --project tsconfig.types.json","lint":"eslint src/**","test":"CHOMA_SEED=$(date +%s) TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha --require ts-node/register --require choma 'test/**/*.test.ts'","docs":"typedoc --out docs src"},"dependencies":{"dd-trace":"^0.26.0","stack-utils":"^2.0.2"},"devDependencies":{"@types/mocha":"^8.0.3","@types/node":"^14.11.2","@types/stack-utils":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","choma":"^1.2.1","eslint":"^7.9.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mocha":"^8.1.3","opentracing":"^0.14.4","ts-node":"^9.0.0","tsunit.external":"^2.1.1","typedoc":"^0.19.2","typescript":"^4.0.3"},"keywords":["datadog","trace","console","APM","logging"],"gitHead":"92e376890e6f5fe311fffa3683195e7f8c352450","bugs":{"url":"https://github.com/apartmentlist/js-trace-logger/issues"},"homepage":"https://github.com/apartmentlist/js-trace-logger#readme","_id":"@apartmentlist/js-trace-logger@0.5.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KPvz32ByrKjR5gENPD90VK4ZyDrxw9XWz/+ltahODlOKUUgjGsfYp+7w8d7eleH3A8QVF5w8kYib/cY74q0LCQ==","shasum":"12e8abf5c9aff3da190e21f29aa541a2e65606e2","tarball":"https://registry.npmjs.org/@apartmentlist/js-trace-logger/-/js-trace-logger-0.5.0.tgz","fileCount":24,"unpackedSize":56032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbQbyCRA9TVsSAnZWagAA5dYP/j4ilTaa6tTG0RUkZeOW\n42Y3oGqignooazJcZpKbM0fKWSBOtwOnPZK9auzU3b9AbtiswY0jvcOQQl9e\niU80LZd2tRF6gt1Zf1INQDudZM4F1+worXDnRkBSEYXbG+NaysIeU/PmFVow\n/rc8C91KzNkbpSNliIKcHmLS1w7wy0MLOm9zraYRhxpqmnv03Tb9nA/6Ji0l\ng696LDcM711xJSk7wBt2LErGiqcI+ljP34M551OmArHouRdWyhWT3W+g1Zs9\nQjkZUIbljpkVf/X4DMAAcmU8lvypb/IiKAL9l2LSS+Tkn5ccSatNbJVZYVFB\nRr2Nl8O4wbOPX3TiswSRDOO4Xvg0QK8PFupq8XF+fulxLimW09t+Zi+QELdZ\nhsv1bhaN6fGJ6V4dv0moxNWfcD2C7mYDn5EJ90+ImJMhY9lgHi3vqO/TC2bd\nS7TI6y0lcsGAMCUt0gFBwZ06upv+U9gctcBT/d4NHA3237CkJrpMfIXPx45l\nyQAoaTNFwPRJYNk7w3d+Knam5NLKO9ay54NtWqXUzBvfUhkEsw80K7hQy27r\nRbqBdlbGg6fdrD053Dgr79pzbFLyQtWfAFZRw6PgVuWm0ouahm4WDR+HezJ7\nnZRVhUdRtSbXi7ZMNnw6tFB4T4Ut93yrglXLTJSA+eMpics41kwX3iZ8YnTD\n3xaz\r\n=gfSC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHw72w6IGqvjBEg1by8fO/b9YRAyEvJ7BNl+jXMXhwA8CIQD5klhYf+5QoSvGM+VuFmgyPvo9xtGaCoCXhwc/dL3ZYQ=="}]},"maintainers":[{"name":"beatak","email":"beatak@gmail.com"},{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"}],"_npmUser":{"name":"beatak","email":"beatak@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-trace-logger_0.5.0_1600980721755_0.6343205027103898"},"_hasShrinkwrap":false},"0.5.1":{"name":"@apartmentlist/js-trace-logger","version":"0.5.1","description":"Logger outputs messages with Trace ID","author":{"name":"Takashi Mizohata","email":"tmizohata@apartmentlist.com"},"license":"MIT","main":"dist/cjs/logger","es2015":"dist/esm2015/logger.js","typings":"types/logger.d.ts","repository":{"type":"git","url":"git+https://github.com/apartmentlist/js-trace-logger.git"},"scripts":{"deploy":"npm install && npm run lint && npm run test && npm run build && npm publish --access public","deploy:dry-run":"npm publish --access public --dry-run","build":"npm run build:clean && npm run build:all","build:clean":"rm -rf dist && mkdir dist","build:all":"npm run build:cjs && npm run build:es2015 && npm run build:types","build:cjs":"tsc --project tsconfig.cjs.json","build:es2015":"tsc --project tsconfig.esm2015.json","build:types":"tsc --project tsconfig.types.json","lint":"eslint src/**","test":"CHOMA_SEED=$(date +%s) TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha --require ts-node/register --require choma 'test/**/*.test.ts'","docs":"typedoc --out docs --excludePrivate --includeVersion src"},"dependencies":{"dd-trace":"^0.29.2","stack-utils":"^2.0.2"},"devDependencies":{"@types/mocha":"^8.2.0","@types/node":"^14.14.20","@types/stack-utils":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","choma":"^1.2.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^5.0.0","mocha":"^8.2.1","opentracing":"^0.14.5","ts-node":"^9.1.1","tsunit.external":"^3.7.2","typedoc":"^0.20.12","typedoc-plugin-nojekyll":"1.0.1","typescript":"^4.1.3"},"keywords":["datadog","trace","console","APM","logging"],"gitHead":"67d40f5277adbec69a2eab0ce47f4e45092416af","bugs":{"url":"https://github.com/apartmentlist/js-trace-logger/issues"},"homepage":"https://github.com/apartmentlist/js-trace-logger#readme","_id":"@apartmentlist/js-trace-logger@0.5.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bYO60Nzg3rgpytXc+T7nHiFeWt9y2m7IuXpfoUCKCB3Ch9kamxFPwAQ5xFoh4xUVzCy6iXEhKG1VsiTZXWOBOA==","shasum":"6b72161414a7f55156815a29595037dac37d0342","tarball":"https://registry.npmjs.org/@apartmentlist/js-trace-logger/-/js-trace-logger-0.5.1.tgz","fileCount":24,"unpackedSize":56235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9Q1BCRA9TVsSAnZWagAAPS4P/15NGxS8PGJFNcOXfW5M\nKZChwSuEAhm7XX5ZZn16gKexz1OrPNHeuWJ62PlCEoKKkmzQflbtl+6aAE47\noMfGo4h3Ye9Vohj37+WAUNlZlwY87FcCc+wKS70HhI6o1r47+4lxXMGQ+grw\n4Kqo7F3ubzetLk8UEt5prdDnzVOOhjRa7PzoPfu23DffqTHBhzIHvllbIvph\nf4uKqBU/Xa7m2D9GISO8KJp6hklQxHWYX6C4RjeqH7ec5QNMhnLwyiWXR3fi\nKdcht1ytzRqUkanN1ZjF+YZNegEftVGWR90SzdXX1bWaWGpJHfvS0Kqgugnr\nS6xbtL2owJhrwZ7nhr3MBFHI3kBMx90D3qQ3TaVFrk7rcO+QmWk9ko1y26jL\ncsTOq6UhewxOo4DwPQwmn3TStq02KAHnQXxtoRx2kf+6N40eZ7eScBV0K9Ej\nZAKi19mfnbdXlB9PvxrfRLZculnXlOj3RW5opOTidAT9KPQuk8fJt74b09dB\nM0LvR6cvUchN2DLhC2Mrp1fNpIOnriYHf/UtPxUUfo0xnFllzBu4iyANYmNk\nR1UqP3EMRV+m/I9dgjqiG34g+HM/ETz4jZDG/WNUC4ZvE4qaDLRC/VjFufoM\nVogA+sagRnFAIQ4X82CiK1vt3FRJF4bIm97MF9qqcTckWq2uysG5EmLK/Zax\n77MY\r\n=dow9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDaYj+lGjVFL4zOXt1pTIgkldJqfhoqIw4BX8Y4iqHUfAiEAhSk1G6bOo4qrzBBGSoXaa4gAja1NQ57m+Jayjg4UcHY="}]},"_npmUser":{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"},"directories":{},"maintainers":[{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"},{"name":"beatak","email":"beatak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-trace-logger_0.5.1_1609895233248_0.29491700989229175"},"_hasShrinkwrap":false},"0.6.0":{"name":"@apartmentlist/js-trace-logger","version":"0.6.0","description":"Logger outputs messages with Trace ID","author":{"name":"Takashi Mizohata","email":"tmizohata@apartmentlist.com"},"license":"MIT","main":"dist/cjs/logger","es2015":"dist/esm2015/logger.js","typings":"types/logger.d.ts","repository":{"type":"git","url":"git+https://github.com/apartmentlist/js-trace-logger.git"},"scripts":{"deploy":"npm install && npm run lint && npm run test && npm run build && npm publish --access public","deploy:dry-run":"npm publish --access public --dry-run","build":"npm run build:clean && npm run build:all","build:clean":"rm -rf dist && mkdir dist","build:all":"npm run build:cjs && npm run build:es2015 && npm run build:types","build:cjs":"tsc --project tsconfig.cjs.json","build:es2015":"tsc --project tsconfig.esm2015.json","build:types":"tsc --project tsconfig.types.json","lint":"eslint src/**","test":"CHOMA_SEED=$(date +%s) TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' mocha --require ts-node/register --require choma 'test/**/*.test.ts'","docs":"typedoc --out docs --excludePrivate --includeVersion src"},"dependencies":{"dd-trace":"^2.4.0","stack-utils":"^2.0.5"},"devDependencies":{"ts-mockito":"^2.6.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","@types/stack-utils":"^2.0.1","@typescript-eslint/eslint-plugin":"^5.16.0","@typescript-eslint/parser":"^5.16.0","choma":"^1.2.1","eslint":"^8.11.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.25.4","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-standard":"^5.0.0","mocha":"^9.2.2","opentracing":"^0.14.7","ts-node":"^10.7.0","tsunit.external":"^3.7.2","typedoc":"^0.22.13","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.6.2"},"keywords":["datadog","trace","console","APM","logging"],"gitHead":"5b1295ba5b7d8bcab0017a986ca82dda9d271ac9","bugs":{"url":"https://github.com/apartmentlist/js-trace-logger/issues"},"homepage":"https://github.com/apartmentlist/js-trace-logger#readme","_id":"@apartmentlist/js-trace-logger@0.6.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-aU4Zu4vTB57dubs5L0oNlTLxpOB36ITtPy5cQI9bPBwTx/NdnoVTuNmtmG0+swUoRT9MFEJGfxpcKD7WDNyZ1A==","shasum":"b6f5e69f6793da12ef5f4190d372994d0ea1cb29","tarball":"https://registry.npmjs.org/@apartmentlist/js-trace-logger/-/js-trace-logger-0.6.0.tgz","fileCount":24,"unpackedSize":56280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPL+EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYIA/5AXPl2OEa+u5zaokC6xhvEyFQQRL5VTbjt+WcreXoiPUFpsgQ\r\nrH6sq0ENjZdRMOgIUh6ohZvXejqGzetyjchD1WPCE7YvzMxMlWi2r7/Ku9La\r\ne27KohqwbLQaoY27sFBmCojo56RENHcWKSC0d+vLiJ3XJrJFsty9/cZPmGYv\r\nntKyM/IDOoICQygQ5zgyvmm1Fk4+ljvMl1vKTe5EUrgpAwWA59Bn++yZVKOy\r\ntJ/GZilqAfVpv9jiTQoHh9D1gza2GRySPag/tDGKcTYfpxtaYElTyKiDrfy7\r\n7ePts2+xfBreu0GvOA97BX6K48AX5tCcl0EMUejspWz1pmPQRnV8rRIYoy82\r\nSIodj1WFPxNBXReX4jxVxBZ7rvw94IPC5f48CxRqxnIBl1vUZw5dM6lkpvji\r\nTIArjBe16OuzwXjP6fr1r3rBPgn0EGIUWTnJX06o5wxAmeQoVoGiObkht7Ks\r\naNHIHMN0nTTQToaXGJORXDLGv0QMa+WJz7qxXvP86tF+1KZn549gJIR1nJGv\r\nfOT1dmRBcLgVBSSXE7FTs6HIMVAfmrNQbHV/GE7SQTOGPjsyzQ0YVWzVnsMo\r\nu7eeoCS94fZ0ObHfYpopqtqGNdTNhDlofKKn7f9+avYswUjZoT3w62ravf9a\r\nFEMcRIcHYH8gXxXenMC++2CENY1gg6jsHL4=\r\n=Wu00\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaSa5uNCKUpJ7PoGIUbzF15LaH3I8aJM0xhO7ZyNXjvgIgZ163phUw5xVqZRAE0v8MpcOH8nYNkJlmOm7PB9wjtwU="}]},"_npmUser":{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"},"directories":{},"maintainers":[{"name":"apartmentlist-npm","email":"accounts@apartmentlist.com"},{"name":"beatak","email":"beatak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-trace-logger_0.6.0_1648148355902_0.22628975846183796"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-24T18:38:57.307Z","0.4.1":"2020-09-24T18:38:57.706Z","modified":"2022-09-27T19:40:17.509Z","0.5.0":"2020-09-24T20:52:01.890Z","0.5.1":"2021-01-06T01:07:13.395Z","0.6.0":"2022-03-24T18:59:16.104Z"},"maintainers":[{"email":"athiel@apartmentlist.com","name":"athiel"},{"email":"accounts@apartmentlist.com","name":"apartmentlist-npm"},{"email":"beatak@gmail.com","name":"beatak"}],"description":"Logger outputs messages with Trace ID","author":{"name":"Takashi Mizohata","email":"tmizohata@apartmentlist.com"},"license":"MIT","readme":"# `js-trace-logger`\n\n`js-trace-logger` decorates messages with DataDog Trace/Span ID and writes it to `console.log()`. So you can connect APM and Log!\n\n## Getting Started\n\nInstall `js-trace-logger` using `npm`:\n\n```bash\nnpm install --save @apartmentlist/js-trace-logger\n```\n\nLet's configure it:\n\n```JavaScript\nimport { tracer } from 'dd-trace';\nimport { Logger } from '@apartmentlist/js-trace-logger';\n\nconst env     = process.env.DD_ENV     || 'development';\nconst service = process.env.DD_SERVICE || 'my_app';\nconst version = process.env.DD_VERSION || 'dev';\nif (process.env.DD_API_KEY) {\n  tracer.init({ env, service, version });\n}\nLogger.configure({ env, service, version });\n\n// this is optional: If you don't need the decoration in\n// non-production environments.\nif (env !== 'production') {\n  Logger.passThru = true;\n}\n\nLogger.warn('hello!');\n// => [2019-01-16 18:38:41 +0000][my_app][WARN][dd.env=development dd.service=my_app dd.version=dev dd.trace_id=8545847825299552251 dd.span_id=3711755234730770098] hello!\n```\n\nThe default log decoration is set to Datadog's recommendation as [For logging in Ruby applications](https://docs.datadoghq.com/tracing/connect_logs_and_traces/ruby/#for-logging-in-ruby-applications). See [More](#More) on how to configure other style.\n\n## Usage\n\n```JavaScript\nLogger.info('foobar');\n  // => […][INFO][…] foobar\n\n// Method footprint is `console.log()` compatible.\nLogger.debug('hello', 'world', 111);\n  // => […][DEBUG][…] Hello world 111\n\n// You can set a log level to filter messages\nLogger.level = 'warn';\nLogger.info('not showing');\nLogger.warn('showing');\n  // => […][WARN][…] showing\n\n// Object and array will be JSON.stringify()-ed\nconst obj = {a: 1, b: true};\nLogger.warn(obj);\n  // => […][WARN][…] {\"a\":1,\"b\":true}\n\n// Error instance will be converted to a special construct\nconst err = new SyntaxError('something');\nLogger.error(err);\n  // => […][ERROR][…] {\"error\":{\"class\":\"SyntaxError\",\"message\":\"something\",\"stacktrace\":[…]}\n```\n\n## More\n\nIf you wanna do something different:\n\n```JavaScript\nconst loggerOption = {\n  env: 'production',\n  service: 'my-service',\n  version: '0001',\n  progname: 'my-app',\n  logTemplate: '{\"datetime\": \"${datetime}\", \"progname\": \"${progname}\", \"serverity\": \"${severity}\", \"dd\": ${trace}, \"message\": ${msg}}',\n  traceTemplate: '{\"env\": \"${env}\", \"service\": \"${service}\", \"version\": \"${version}\", \"trace_id\": ${trace_id}, \"span_id\": ${span_id}}',\n  dateFunc: (d) => {\n    return d.toISOString();\n  }\n};\nLogger.configure(loggerOption);\nLogger.info(JSON.stringify(\"hello world\"));\n  // => {\"datetime\": \"1970-01-01T00:00:00.000Z\", \"progname\": \"my-app\", \"serverity\": \"INFO\", \"dd\": {\"env\": \"production\", \"service\": \"my-service\", \"version\": \"0001\", \"trace_id\": \"1\", \"span_id\": \"1\"}, \"message\": \"hello world\"}\n```\n","readmeFilename":"README.md","homepage":"https://github.com/apartmentlist/js-trace-logger#readme","keywords":["datadog","trace","console","APM","logging"],"repository":{"type":"git","url":"git+https://github.com/apartmentlist/js-trace-logger.git"},"bugs":{"url":"https://github.com/apartmentlist/js-trace-logger/issues"}}