{"_id":"@apollo/utils.logger","_rev":"2908332","name":"@apollo/utils.logger","description":"Generic logger interface","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"glasser","email":"glasser@apollographql.com"}],"time":{"modified":"2023-01-13T06:23:36.000Z","created":"2022-04-05T20:33:09.133Z","2.0.0":"2022-11-18T17:12:27.894Z","1.0.1":"2022-10-18T00:14:39.231Z","1.0.0":"2022-04-05T20:33:09.133Z"},"users":{},"author":{"name":"Apollo","email":"packages@apollographql.com"},"repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-utils.git","directory":"packages/logger/"},"versions":{"2.0.0":{"name":"@apollo/utils.logger","version":"2.0.0","description":"Generic logger interface","main":"","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-utils.git","directory":"packages/logger/"},"keywords":["apollo","graphql","typescript","node"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","engines":{"node":">=14"},"gitHead":"a81b88047ea1213c08fec8530e6ab9c30d03ce59","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"homepage":"https://github.com/apollographql/apollo-utils#readme","_id":"@apollo/utils.logger@2.0.0","_nodeVersion":"16.18.0","_npmVersion":"8.5.0","dist":{"shasum":"db8ec1e75daef37bcba0d31e0ea23b56126f3a5a","size":2941,"noattachment":false,"key":"/@apollo/utils.logger/-/@apollo/utils.logger-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@apollo/utils.logger/download/@apollo/utils.logger-2.0.0.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"glasser","email":"glasser@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.logger_2.0.0_1668791547744_0.8743779372127551"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-18T17:13:51.943Z","publish_time":1668791547894,"_cnpm_publish_time":1668791547894},"1.0.1":{"name":"@apollo/utils.logger","version":"1.0.1","description":"Generic logger interface","main":"","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-utils.git","directory":"packages/logger/"},"keywords":["apollo","graphql","typescript","node"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","gitHead":"f169ad777a98b155f5517e8af2cac0c93747634e","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"homepage":"https://github.com/apollographql/apollo-utils#readme","_id":"@apollo/utils.logger@1.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.5.0","dist":{"shasum":"aea0d1bb7ceb237f506c6bbf38f10a555b99a695","size":2924,"noattachment":false,"key":"/@apollo/utils.logger/-/@apollo/utils.logger-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@apollo/utils.logger/download/@apollo/utils.logger-1.0.1.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"glasser","email":"glasser@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.logger_1.0.1_1666052079035_0.6987597888619759"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-19T02:06:34.429Z","publish_time":1666052079231,"_cnpm_publish_time":1666052079231},"1.0.0":{"name":"@apollo/utils.logger","version":"1.0.0","description":"Generic logger interface","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-utils.git","directory":"logger/"},"keywords":["apollo","graphql","typescript","node"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","publishConfig":{"access":"public"},"gitHead":"b43e9023117330c9e44ff694ccfb68ce65473b31","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"homepage":"https://github.com/apollographql/apollo-utils#readme","_id":"@apollo/utils.logger@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"6e3460a2250c2ef7c2c3b0be6b5e148a1596f12b","size":2934,"noattachment":false,"key":"/@apollo/utils.logger/-/@apollo/utils.logger-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@apollo/utils.logger/download/@apollo/utils.logger-1.0.0.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"glasser","email":"glasser@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.logger_1.0.0_1649190788971_0.7583812196681592"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-05T20:38:34.820Z","publish_time":1649190789133,"_cnpm_publish_time":1649190789133}},"readme":"# Logger interface\n\n> ```\n> interface Logger {\n>   debug(message?: any): void;\n>   info(message?: any): void;\n>   warn(message?: any): void;\n>   error(message?: any): void;\n> }\n> ```\n\nThis generic interface for loggers supports logging a string at one of four different levels (`debug`, `info`, `warn`, `error`). It's designed to be compatible with Node's `console` as well as commonly used logging packages and is tested against a few of them. Below are the logging libraries we test for compatibility against.\n\n## bunyan\n\n```\nconst logger = bunyan.createLogger();\n```\n\n## log4js\n\n```\nconst logger = log4js.getLogger();\n```\n\n## loglevel\n\n```\nconst logger = loglevel.getLogger();\n```\n\n## winston\n\n```\nconst logger = winston.createLogger();\n```\n","_attachments":{},"homepage":"https://github.com/apollographql/apollo-utils#readme","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"license":"MIT"}