{"_id":"@atic_c/multi-logger-js","_rev":"5-ea60ea3af9e149106255ec6ba5530442","name":"@atic_c/multi-logger-js","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@atic_c/multi-logger-js","version":"1.0.0","description":"A simple logger which is able to write in logfile","main":"logger-js.js","repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"keywords":["logger","js","log","logfile"],"author":{"name":"acalvet"},"license":"MIT","bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"homepage":"https://github.com/calvetalex/logger-js#readme","gitHead":"c11986fec8f8b7b321e987b97f4aeb1a18d299e4","_id":"@atic_c/multi-logger-js@1.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.11.1","dist":{"integrity":"sha512-SE78WO6tyQaC7KOerOTsRQjN5EIzu31Iv4g1uC4rWEJmX7KBKVEYUyGPvhkl15P4Jj2oV2WfBq73DKb+EskJ2g==","shasum":"f77491526fba1290571652ce1337c5a983ee99fd","tarball":"https://registry.npmjs.org/@atic_c/multi-logger-js/-/multi-logger-js-1.0.0.tgz","fileCount":5,"unpackedSize":16933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnotoCRA9TVsSAnZWagAAJ2AP/1Bf436B3NOTiffXQbE0\nLXdPKiNA7bfGLXwj83608vUllnoAZRVsUewnxQtTZ6+xukULJP9e2k1vmmJp\nRnl74nYiNrmtKb3zBvvC0/wI/3YBNWddiLHRmejh+3br98XHn1cEhBB9tvQn\ntGVCEKS4bP6WVqzRIxU78QFWTheehAuvq53s9VnCv9MtjSthdg11jQMyPBu9\nRBiMjiFypCazZ5RB0koiASFFF5ykg/eKLnO6lijMtHB/v86siHB6Dp8H5bAm\nMT55JiPsRIV36tOVJv5bZaSfyboSFoZyHE2BWy3I/da2+bdnFZPIzaJstXev\n/OjdaD7PnyHQTTffZX/+NE7b7rU22eo0/VoBqTuX3PqT3q7MfyD5FieP9gdn\n9Kcl6O7jAPc8JYwopXgiMYGnOMFwmxcR+K1o8TInRaPiJ5bUSj/VX5oXaq4T\nhlL4YDjoJM6Q6YbtXKVUXJI+Zvc9MIl5n38LXsCRfXZ1x6scb4S15fe7qXQx\nBCdwB1d7NYIzj9PwqiiU0TPcbiy+w2kFgrHzm9FlWt6gwki4urPYNVhezUld\nChZawG8aRAkG+VggDe20yWeGt9sFmE0tE5z5/Fyup1JjOevdpnMe71Dv9hRF\nOT0KZZpTORIed7q610JzTr/1RG9M+v+jZjaRBS5htHDMQ+ElLthHhqcvC06T\nHDB9\r\n=SOd9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMYAy8j93DLT8wNiBQsF7DH/H5J/K0KNeudkiEVFQb0AiA+lE1uoo8OnrTyIZOTJYrEmM0ntSdJMf6zlClUXHWyiA=="}]},"_npmUser":{"name":"atic_c","email":"calvet.alexandre@epitech.eu"},"directories":{},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multi-logger-js_1.0.0_1621003112451_0.3810514384245969"},"_hasShrinkwrap":false},"1.0.1":{"name":"@atic_c/multi-logger-js","version":"1.0.1","description":"A simple logger which is able to write in logfile","main":"logger-js.js","repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"keywords":["logger","js","log","logfile"],"author":{"name":"acalvet"},"license":"MIT","bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"homepage":"https://github.com/calvetalex/logger-js#readme","gitHead":"786feb358f9cf4fb27d0ab64a00ab5aaa8d9189d","_id":"@atic_c/multi-logger-js@1.0.1","_nodeVersion":"16.0.0","_npmVersion":"7.11.1","dist":{"integrity":"sha512-ukXTIjlCOpVFxlcwiSEmkz0Sr0efTU5Bd4wItVA12+TCo6B9qKNGk8h39tD+h9lr+yD7N7c2XYfoHihfxTB4fg==","shasum":"e513442935ab3e0d8451333865ac571315e8ca02","tarball":"https://registry.npmjs.org/@atic_c/multi-logger-js/-/multi-logger-js-1.0.1.tgz","fileCount":8,"unpackedSize":18185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnpkfCRA9TVsSAnZWagAA7KMQAI4EghZO0E7Ub3JcghMR\nR3CHqhIULbJE1QsYq+vnsc3Y2umB22BFRmoriH2cdHAKED5+DTRX5DYfeAki\njIJ+GLK8WfScsQz4GEnIdsxa1FkMO8x0cM5zrv4Jnyx2b5WwWngDFt0I6ALS\nz8zG4RJFh24A4GzUp5NzTNZkfVcD0Du8Hv7ZPVdJjKmtrT4tS2kTTy8nGx0J\nHEL7W8gfAEHhSUXTg7XlCU7na/B5E2PeEQPsc0yh4Z8bt/wArr5sClD7TZaB\nC9oRBcDpzJwuzb7UY6e32ftwoEFQ26B3m+ChxyOr+2LNB7eArCNVeyVvgUmW\nErHmUPlVdDEBNDvgPgTHTjp6NJpF+E6ZUYeJP1O+tL8ibrIwQEznLnu+rEON\nzzDAO/4W7+wC8yUreiFo4dKsxesGHIhAmhw5Zo4ZFHuz+bholVnx88CuyQgN\nmEhpovF0rS+MbjV6MxhzZkRxHyE84YHW6m8nFZ39nKoFGnEwre1nQ3nIMTjw\ndCMUwX2Mt+1Lga64EvuVk29xmau6hLbSJlpZYYXRbdiR56ZaiQkI89czAoMA\nSbJHPUR/u9+L+N9usHR9BLEWkcsqJidKGqlcvc84tNolIAE7FR3bRsplr+Dn\nF27FS45zVwp/KwCZx2Y39I7ZFa6TxJd8E/ZjcWbKpKwuo9mq2kAntRuZu8/6\nPOV1\r\n=pItQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEej71DgIwWwMQEAKDHvmVHCPIqevgXs9gSyahhzrhQxAiB2UEF/I5lb3/qTqgX9p3EETz1qvFhPPWOEu1R8/61Vaw=="}]},"_npmUser":{"name":"atic_c","email":"calvet.alexandre@epitech.eu"},"directories":{},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multi-logger-js_1.0.1_1621006622544_0.09163553183655915"},"_hasShrinkwrap":false},"1.0.2":{"name":"@atic_c/multi-logger-js","version":"1.0.2","description":"A simple logger which is able to write in logfile","main":"logger-js.js","repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"keywords":["logger","js","log","logfile"],"author":{"name":"acalvet"},"license":"MIT","bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"homepage":"https://github.com/calvetalex/logger-js#readme","gitHead":"9d169b447c0f1a1c0b042f8dbc28c10a6d5ce21e","_id":"@atic_c/multi-logger-js@1.0.2","_nodeVersion":"16.0.0","_npmVersion":"7.11.1","dist":{"integrity":"sha512-TdhioJ1OwdDtgVJjRwFLywetwfP3YOu2AvLdEotvU02KiRHJUA/bSIv5wTFCFuci+au5XDongLDzcvPetHydYw==","shasum":"34f7c6e427871c04e689292d6eee6e40c4efa0e2","tarball":"https://registry.npmjs.org/@atic_c/multi-logger-js/-/multi-logger-js-1.0.2.tgz","fileCount":8,"unpackedSize":18606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnpz7CRA9TVsSAnZWagAAQlIP/3k5/Qv3+55pFwAsjTbv\nbYLEvDxdeQjvnLST/psg45zE4BUfVwsA/e/OjNzDJpMn3mALP1cCjf7F+2E3\njwuK3aLLOnvoqbYJObW9iJOYMDHuHLD281uYWvVuQOKsdTfXArWiX6sbKT9z\nxS0N75rmRjo3fhA0XJR/65YXmneYamkr698sJma2RoTJ/61QONh3kd/MndFb\nwiBAvVvTRo2IgrbKXUFL7kqKVHbjyfoICY5pNAoDAwG/fxBcvyK/J+XJKALQ\nT374RC0bBGtuzcRdoonoGx7Vb29Xsqr+X15TIAKmpx+NebD/wRjmCfF1uy7N\nYiKJVFMD8mgDr510JP56P4NFKKDE0YGzV8aGDl13aq+G+vSI4NIkxmP1CCQj\nnuSbZsU2g7uHivEEWVnWTs1WTNKUuknaaHg6eZc2d9GMBhB4cshrWHBNDzzO\nWWu6TGkgeVHV5QAN9eDpdaIbhS3ix76ImEO6xMLthGe7mdhREMMQPmCuRyAC\n3nxtov337cIL2yrmjalojdq7D1JYSmiUbX99Nqg7Drsf7I+L/7dUntyvkloR\nSHK/93vk13w51dIpQ/lkuNDUkMJbl14L3AXigMe6+4tJSNzNQ87Zs/LKpcM2\nJqAE6xd6gOMAGX4Cai/IeDkuXAI0YlyprvGnkJHHPWFaFKzjhxEOIuiPSF3S\nKs4C\r\n=oIXb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWa/duonYfHeatvUqR8HJ9vjekiLXJoUFpZNJudYYhYAiAqNaAfMMqNnDjA7NESeD5hhn6/bU5slnJmz9DLbNJmOw=="}]},"_npmUser":{"name":"atic_c","email":"calvet.alexandre@epitech.eu"},"directories":{},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multi-logger-js_1.0.2_1621007610620_0.28413635956214733"},"_hasShrinkwrap":false},"1.0.3":{"name":"@atic_c/multi-logger-js","version":"1.0.3","description":"A simple logger which is able to write in logfile","main":"logger-js.js","repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"keywords":["logger","js","log","logfile"],"author":{"name":"acalvet"},"license":"MIT","bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"homepage":"https://github.com/calvetalex/logger-js#readme","gitHead":"d0ae52945c10575d8a2f98bf6b7804b6f1cd99f3","_id":"@atic_c/multi-logger-js@1.0.3","_nodeVersion":"16.0.0","_npmVersion":"7.11.1","dist":{"integrity":"sha512-TCJeyCGjc2k7RqCxA+XT1JsbW4YVlpReqg5MPs5imLrz8ELrEknpbwzR+cPsJkGQx0Hzzhjb0Ty4O88Bakcysg==","shasum":"1f86d88655e778c12bf46a65dc63b61a990744e2","tarball":"https://registry.npmjs.org/@atic_c/multi-logger-js/-/multi-logger-js-1.0.3.tgz","fileCount":8,"unpackedSize":17968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnp9rCRA9TVsSAnZWagAAqsQP/0I8xbrqR/6g4Agwzw3W\nbl6Ih7wM7ng+8spluahgmXMnC89D/4qVC/kllUMusBGirP6FV2bjFis5vDjq\nOjW7pG4EvtWrlSSm2n55iPOGS15m4WtiuHPCsXfTxcrDTHqkDHQV2XeBpcMq\nJlO70le0JX/CW3Xxs66NnfaIByEAcc2NvNadQhfNe29g/ODotqTHwOzMsSUO\nPfHkp1TC1nGZwoXxSTkXh0u0jUhYRdBz8NF3eX1L6EhFtJQXCScuGDMl/b9G\ndqypUnaGiIppKm/+cOs6WdXQptAGSZGn1lNZOPaWNMy8YwsO+UOw5yYiU5TA\nVDtkoHrNxESXkSlkf1jGjY8q3BuJfrRWS4Zz/sVMOKyJGgbwqU0Ta71nz7AK\nD4tYzP2wjjoZLwL+Bu9su+NIArua/bAQ9x7sp/APYs2jkgNrS6/2diD4OVUx\nLgCOhgMqQwTigR5maCjtajzHAZGqlk9e9Uguzv+hzPx4D/AiCG6uHtwuxqrc\n6ChmNaaqovjWgNY1fc7tHR9kH5asoHpRH7kdnG1A7b3XJcfE3Teiwvm8jLUD\nswvuQC5XsydfqVWp/CxXfQoD9bFReEO/VVo91BWBsbfWcuHkQOn9AYyZjNdR\nqETz+HYfzrW0MlfgabfAuzEr+eJ2cZJVnge+SSAwQyWRy9f/WjgXtRPBJkra\nK+s9\r\n=fHGw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGR2cLeJNdZv7BMHqDs0HO5vwuXtRxSnmDm4pKVLwGy6AiEA1A2s38CBWDWOl4PFSQYHbuzrAUjtH/wUhghaGxi2W4k="}]},"_npmUser":{"name":"atic_c","email":"calvet.alexandre@epitech.eu"},"directories":{},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multi-logger-js_1.0.3_1621008234917_0.5051144454677319"},"_hasShrinkwrap":false},"1.0.4":{"name":"@atic_c/multi-logger-js","version":"1.0.4","description":"A simple logger which is able to write in logfile","main":"logger-js.js","repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"keywords":["logger","js","log","logfile"],"author":{"name":"acalvet"},"license":"MIT","bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"homepage":"https://github.com/calvetalex/logger-js#readme","gitHead":"963a6e8a80a54234d97a53b7b7af2c32592163cd","_id":"@atic_c/multi-logger-js@1.0.4","_nodeVersion":"16.0.0","_npmVersion":"7.11.1","dist":{"integrity":"sha512-jureRVsXlaSNvEhBv59f6X1nuk3dK7uIVpz0GLHLF6x5HBGB4FGd6N4YPqj9bp/h75og4A5sOxhS+SUNVRdZjQ==","shasum":"9ed81f0b34c48f336529dad8ed425f6dd419bcb4","tarball":"https://registry.npmjs.org/@atic_c/multi-logger-js/-/multi-logger-js-1.0.4.tgz","fileCount":4,"unpackedSize":7208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnqrWCRA9TVsSAnZWagAAxv4P/3HoXcKDGWuYFldysKM/\n4TJN8iWNPx28nU9lw3KVGudrNmrkVTw/QllE5PFQJzpdtm8NWuwKQL9qUbuE\nuiFvETTOikjx99X9ueUr7ciyIKrmlv2P3DEAWow4SilwfWvTI5FbE/wcqw5i\ny2ztLkmLLKALEA1Iq5WAUlmAMZC4dbZ+TBSRCTSSd/Dj/bnpNgJMB5+zMI1c\n0E5/YTqzfEPt5Uq/zqRxjvkKWGHLMj83f0yvNFPxXutYeh1uBPj0MZBcaE1Y\nuY0JVfUoyuZEuud3U5eaEQpOQ6veFgkoPAf4lvrKQsmco3I9KlCK9Mlfwaa+\nylAirGPyAYbn4WZoRy3hZXeLpHu5DqIN2WX8ua0cLoPcopWBcUTjwLrVqhl1\naCvKnuAsaWA0Ly83JvHugzvQmZMZUQFK3RO8wk8LfSBvfSexaFqEme3ce/VJ\n6Kz9yOT1e1hC3E9l1/mezj0LhutOcwRK1NrZ4xlRMLdu2ZpvnUmfJC8WQrQc\nMMItm/PMczC6c/IJatT90lGX6xRsrAZxUltGQ8N4zPDRtehIF4jQ7bRzmI6p\ni0edUpKLxwhGkebcFPZdWVE8bxxQtT5IIuK/zPENt5E5BpoW2unj/gpNKHwQ\nfn6wLxofhAWJP+y1urwkjra5Bi4scq8Vy2r9PHKGxPmtkHLI+P0Xo1/alt9J\n8Z5Z\r\n=Yd7c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfYDaRfWa2pbMB3hYu3MBMN8i9NZAGqUQBwzimCFSY8AiBNm3Csyp0UtyjfqJqy+bR9of5fGUW/Mx2E8Az2Q8GEmQ=="}]},"_npmUser":{"name":"atic_c","email":"calvet.alexandre@epitech.eu"},"directories":{},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multi-logger-js_1.0.4_1621011157807_0.6578188857321006"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-14T14:38:32.398Z","1.0.0":"2021-05-14T14:38:32.570Z","modified":"2022-04-04T16:04:30.328Z","1.0.1":"2021-05-14T15:37:02.759Z","1.0.2":"2021-05-14T15:53:30.778Z","1.0.3":"2021-05-14T16:03:55.112Z","1.0.4":"2021-05-14T16:52:38.049Z"},"maintainers":[{"name":"atic_c","email":"calvet.alexandre@epitech.eu"}],"description":"A simple logger which is able to write in logfile","homepage":"https://github.com/calvetalex/logger-js#readme","keywords":["logger","js","log","logfile"],"repository":{"type":"git","url":"git+https://github.com/calvetalex/logger-js.git"},"author":{"name":"acalvet"},"bugs":{"url":"https://github.com/calvetalex/logger-js/issues"},"license":"MIT","readme":"# logger-js\n\nFree to use logger. It's a simple library that use console to print data and save it in files.\n\n## How to use\n\nAs any other logger, you can use :\n\n```js\nlog, info, debug, error \n```\n\nTo use it in your project you can use it like:\n\n```js\nconst Logger = require('@atic_c/multi-logger-js');\n\nconst logger = new Logger(\"onStdout\"); // will write on your console\nconst loggerWith = new Logger(\"WithLogfile\", \"./log\"); // will write on your console and save in a logfile\nconst loggerWith = new Logger(\"WithLogfile\", \"./log\", true); // will write on your console and save in a logfile (truncate it if it already exists)\n```\n\nThe first argument is the name given to the process, the logfile will be called `WithLogfile-standard.log` in that case.\n\nSecond parameter is the path to your log directory, if it's not given, the Logger will just write on stdout. If the path given is invalid, logfile will not be created and the Logger will just log on stdout. Moreover you will be alerted that the directory has not been found. (No error will be generated by the logger, as it's supposed to help you and not break your program).\n\nFurthermore, if an error occurred it will be logged in the standard logfile but also in a error logfile, in our example `WithLogfile-error.log`.\n\nFinally, the last parameter is a boolean to let Logger knows if you want to overwrite logfile or not. By default logs will be append to the file.\n\nOnce you have initialize your logger, you can use it :\n\n```js\nconst txt = \"a simple log\";\nconst arr = [1,2,3,4,5];\nconst obj = { name: \"toto\", age: 19, city: \"Toulouse\" };\n\nlogger.log(txt);\nlogger.info(\"a simple info\");\nlogger.debug(\"a simple debug);\nlogger.error(\"a simple error\");\nlogger.log(arr);\nlogger.log(obj);\n```\n\n## Logging\n\nEach method take a string or a variable as argument.\n\nIf it's an object, it will be stringify before output to make it readable in a logfile. This is to avoid `[Object Object]` in the middle of your file. (WARNING : in JS `a = [1,2,3]` has an Object type : `typeof a` will give object)\n\n```txt\n[LOG][2021-05-14 . 18:51] a simple log\n[INF][2021-05-14 . 18:51] a simple info\n[DEB][2021-05-14 . 18:51] a simple debug\n[ERR][2021-05-14 . 18:51] a simple error\n[LOG][2021-05-14 . 18:51] [1,2,3,4,5]\n[LOG][2021-05-14 . 18:51] {\"name\":\"toto\",\"age\":19,\"city\":\"Toulouse\"}\n```\n\n## COMMENTS / ISSUES / PR\n\nFeel free to fork it and make your custom version\n\n## LICENSE\n\nMIT, see the source.\n","readmeFilename":"README.md"}