{"_id":"@biut-block/biutjs-logger","_rev":"2-5649cb95ddd48edbad35dd6a8f927955","name":"@biut-block/biutjs-logger","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.4":{"name":"@biut-block/biutjs-logger","version":"1.0.4","description":"A simple logging library for BIUT-Block System","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-logger.git"},"keywords":["logger","biut","biut-block","blockchain"],"author":{"name":"Li, Yuan"},"license":"MIT","bugs":{"url":"https://github.com/BIUT-Block/biutjs-logger/issues"},"homepage":"https://github.com/BIUT-Block/biutjs-logger#readme","gitHead":"c79cf540e36c8d39ce596b3a032e0532068dda88","_id":"@biut-block/biutjs-logger@1.0.4","_nodeVersion":"8.15.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-+Dc/gC3peUAvzk8IyIW6AUvb/gnmaLGwBMJSOHbVjxFvPAMJabUbj6Bzjx/Jv8Y4rayFrmcGxrOmASSvBAhZtQ==","shasum":"f3bd5310e50ff64026dd82cc52ef2ac18b16e0f7","tarball":"https://registry.npmjs.org/@biut-block/biutjs-logger/-/biutjs-logger-1.0.4.tgz","fileCount":3,"unpackedSize":4975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/NLYCRA9TVsSAnZWagAArbIP/0NFAA9dHNMHgufbrmxM\nrHAl1DKeadBlBiTLhsVvv0pKaBJwdXxZIM4FGZxUJs98tUG7l+MjJz/H6YlF\nCWX1LswNdrHNsCAChllGoncIBS8b3R4vCB+de8j2uJiQ+s0dBGNufnV+lMEZ\naP3Or2dL1wiUfvBddnmIh6Ts09LO8GFvKchIhipw+fSXAbDkkCINh6RxhIGR\n8MgxxnUZVdLApNaMNIVG3xmnd0lHvbcK/RoO0/UqD7gsPLB8j83v4S5YpZvc\n0EHsLCynf3jsWChQiiqOmNqcXAZuNeOofkkMdEg8SKUFb4upeBgCg5PzKeh+\nSOom918gNiDyPMdyR3wZvkZrbkKWEuYXh0r4xJnqRoofuXc6jSQP46V2i9SO\nQFdZmdXqq1y+9f6F1HmXNW7hzlOAbKFCEntRH7PnaA3gYaDHJNG5eIoaoKsc\npZuct5hS8q2tKcaTfzWPqk9g0m6ynS3gBNv5YsDC+Q8mtAIKnUEzI7jPvkLk\nbfa+JaE47vztwb5PPOpEWODkGbnxVUgc7cwRfqwUXz7Nm0+IIKonfmSe2zfm\nBREjKgE3aJmFEvfUwRqNvfCqHUyg7G6/aJhqXbh749rN1zkFr3y3p4tmg9/w\nIKX/AFQChzVodWUe6bE/SOtGkZcRvADqFBJLFLIM2WBinvh+cuj8SWNoIUYW\nxhug\r\n=3e8g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAKEOx1i8qFasXmv6cWvNtm8ljrasAAYEY9+79JG2jZAIgXf30Rp9IDPz9Z6GL7EZldP6hRJ4rosT7ZnpJGlkYm3Y="}]},"maintainers":[{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"abysmli","email":"abysmli@gmail.com"}],"_npmUser":{"name":"abysmli","email":"abysmli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/biutjs-logger_1.0.4_1560072920172_0.06524547020761595"},"_hasShrinkwrap":false},"1.0.5":{"name":"@biut-block/biutjs-logger","version":"1.0.5","description":"A simple logging library for BIUT-Block System","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-logger.git"},"keywords":["logger","biut","biut-block","blockchain"],"author":{"name":"Li, Yuan"},"license":"MIT","bugs":{"url":"https://github.com/BIUT-Block/biutjs-logger/issues"},"homepage":"https://github.com/BIUT-Block/biutjs-logger#readme","gitHead":"93338102a7dde578c172f0d42163450c706b9afd","_id":"@biut-block/biutjs-logger@1.0.5","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"abysmli","email":"abysmli@gmail.com"},"dist":{"integrity":"sha512-3TO6npbeZ/Vp5fps4vUtw01N8IxhgWYnLrz+TQWrjtT7DYdP8zRQfwR7HktAhqwkTpGYs+mOM0KM2F6V5QLi/A==","shasum":"bcb89fbfc25a486cecfbf8934c0f36cf3ae2d63d","tarball":"https://registry.npmjs.org/@biut-block/biutjs-logger/-/biutjs-logger-1.0.5.tgz","fileCount":3,"unpackedSize":4975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/666CRA9TVsSAnZWagAAl8UP/j3Z+Fba7M68e574e6B6\nH8Fwo1UKWgNBil6OnOuKq7iKNIbjTPa7gVDsIN+JdbQxs+ceqkmgsnbCpShu\nAwMdhsokOeuF81wU/zrWiNy8e0U5yYyCOEWFUl5J1tQs6z1WbfvTV3GaslQu\n3OgNtiPg6mcuae6AMh8yp5+qa14hC8H97DlGbgsecjshGFWD5jn6pS1VjOD4\nv6ba7JuGWZPn97NN5tC9du5hcINk0fYYOcxanecylQ4GySvDvGwJ2oaXo5v/\n1rZRqT3C3Advutun+cHOMiE1V52sg9AsnyJtG47QTHt8s1G3nzvd7QYuSRak\nLJ3UQNLqBiczsE5PtBlk6wFAZsm7Ded+j1Q8hc6HOcxf4A8l4wh/3UOlljuk\nd4m7STNY+qeJLDUJxwKT2RT2zyJJ8kyPioEPsdJar6UWLJxhbWylGC/IQgej\neGW/EIzvGauxiJ61a3cN2DuPDIoaYvVOG+dtUF1SDULNnj382jLE6ChLStQf\n1AS/EfPkAdzzvJjYlSrS9Ia1KKmLf5EO+7SEz9gvnmG5zqRjLroD11KdP4ez\nslSobKoXy4c9LwY4zkMQLm1T811HOR+SnJUUyU9QO1laeFKzEAzM/fURJeX+\nz5J8tEz9pQ+ZgwlfJxpBOfdIvLaeS/Dkv/OgyDKKAWLi+1GveOFqKN6rgjaw\n+arW\r\n=Vpy5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuN3Q8zIJbtHRj/kailj+xusF035CLl2mHNk7hMnntbgIhAIytqzrm1DRi8j8AnqyK6gZ33j/IAuu+jO11XBDXagEA"}]},"maintainers":[{"name":"abysmli","email":"abysmli@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/biutjs-logger_1.0.5_1560260281092_0.09124790085028289"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-09T09:35:20.171Z","1.0.4":"2019-06-09T09:35:20.348Z","modified":"2022-04-04T19:14:52.145Z","1.0.5":"2019-06-11T13:38:01.254Z"},"maintainers":[{"name":"abysmli","email":"abysmli@gmail.com"},{"name":"feiminhao","email":"fei.minhao1990@gmail.com"},{"name":"g277321","email":"g277321@gmail.com"},{"name":"tornadoming","email":"ming1992liu@gmail.com"},{"name":"zuweihan1992","email":"zuweihan1992@gmail.com"}],"description":"A simple logging library for BIUT-Block System","homepage":"https://github.com/BIUT-Block/biutjs-logger#readme","keywords":["logger","biut","biut-block","blockchain"],"repository":{"type":"git","url":"git+https://github.com/BIUT-Block/biutjs-logger.git"},"author":{"name":"Li, Yuan"},"bugs":{"url":"https://github.com/BIUT-Block/biutjs-logger/issues"},"license":"MIT","readme":"<a name=\"SEC Logger\"></a>\r\n\r\n* * *\r\n## SEC Logger\r\n[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) \r\n\r\nhttps://github.com/SEC-Block/secjs-logger\r\n\r\n### SUMMARY\r\nA simple logging library for SEC-Block\r\n\r\n### USAGE\r\nA logger has 5 different levels of logging in a specific order:\r\n\r\n'fatal', 'error', 'warn', 'info', 'debug'\r\nEach of these log levels has its own method on the logging instance. You can set the maximum log level on a logger at runtime.\r\n\r\nBy default, a logger writes to STDOUT, but given a writeable file path, it will log directly to a file.\r\n\r\n### Instantiation:\r\n```js\r\n// standardjs style\r\nconst logger = require('./logger').createLogger() // logs to STDOUT\r\nconst logger = require('./logger').createLogger('development.log') // logs to a file\r\n```\r\n\r\n### Logging:\r\nAny of the logging methods take n arguments, which are each joined by ' '. If an argument is not a string, it is string-ified by util.inspect()\r\n```js\r\nlogger.info('loading an array', [1,2,3], 'now!')\r\n// info [Sat Jun 12 2018 01:12:05 GMT-0400 (EDT)]  loading an array [ 1, 2, 3, [length]: 3 ] now!\r\nlogger.debug('this wont be logged')\r\n// false\r\nlogger.setLevel('debug')\r\nlogger.debug('this will be logged now')\r\n// debug [Sat Jun 12 2018 01:12:54 GMT-0400 (EDT)]  this will be logged now\r\n```\r\n\r\n### Customization:\r\nYou can completely customize the look of the log by overriding the format() method on a logger.\r\n```js\r\nlogger.format = function(level, date, message) {\r\n  return date.getTime().toString() + '; ' + message\r\n};\r\nlogger.debug('message')\r\n// 1276365362167;  message\r\n```\r\n\r\n### LICENSE\r\nMIT, see the source.","readmeFilename":"README.md"}