UNPKG

direct-logger

Version:
258 lines (125 loc) 11 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [2.15.1](https://github.com/devthejo/direct-logger/compare/v2.15.0...v2.15.1) (2023-05-07) ### Bug Fixes * relay dateStart to children logger + lint ([67d40d7](https://github.com/devthejo/direct-logger/commit/67d40d7090353227c50e6cf203d06d26726eb015)) ## [2.15.0](https://github.com/devthejo/direct-logger/compare/v2.14.1...v2.15.0) (2023-04-10) ### Features * stream as function return 2 full sync target ([2ced94b](https://github.com/devthejo/direct-logger/commit/2ced94ba4280e6cf2b843cac1d20783be8e7d5e4)) ### [2.14.1](https://github.com/devthejo/direct-logger/compare/v2.14.0...v2.14.1) (2023-04-08) ### Bug Fixes * expose fileWriteStreamSync ([ab843b1](https://github.com/devthejo/direct-logger/commit/ab843b1a1276a1172a758d7c2ca28c7128ce9ff2)) ## [2.14.0](https://github.com/devthejo/direct-logger/compare/v2.13.0...v2.14.0) (2023-04-07) ### Features * add FileWriteStreamSync helper ([b0156d2](https://github.com/devthejo/direct-logger/commit/b0156d225b22a66f7c65de24abdc872546b9b8dc)) * fomatter as factory ([7455ea8](https://github.com/devthejo/direct-logger/commit/7455ea82d0d1a7b584c501ca20855e5f93565bc3)) ### Bug Fixes * default enforceLinesSeparation ([f7f59b7](https://github.com/devthejo/direct-logger/commit/f7f59b7f54d57f3b636e89fab99e13d3223629be)) * serialize error ([7563328](https://github.com/devthejo/direct-logger/commit/75633282ec58be711405da07beec65100e7a75c1)) * sync and wait for end ([de25c2d](https://github.com/devthejo/direct-logger/commit/de25c2d45b3671b9ee269c42ed6fa12fce48170f)) ## [2.13.0](https://github.com/devthejo/direct-logger/compare/v2.12.0...v2.13.0) (2023-04-05) ### Features * date + duration + refactor + fix tests ([ea83c09](https://github.com/devthejo/direct-logger/commit/ea83c09b686010260691e11e70e010b00c92d493)) ## [2.12.0](https://github.com/devthejo/direct-logger/compare/v2.11.1...v2.12.0) (2023-04-05) ### Features * add end waiter function ([ad323e6](https://github.com/devthejo/direct-logger/commit/ad323e68be1ab4b3cd7423bb3970e8a2f106b0dc)) * add stream helpers ([154af42](https://github.com/devthejo/direct-logger/commit/154af4282780ef3116b339514de6faf0407d10ea)) ### [2.11.1](https://github.com/devthejo/direct-logger/compare/v2.11.0...v2.11.1) (2023-03-24) ### Bug Fixes * cast msg to string ([a4baee1](https://github.com/devthejo/direct-logger/commit/a4baee107c53323987aa13429ec92be508a7749c)) ## [2.11.0](https://github.com/devthejo/direct-logger/compare/v2.10.5...v2.11.0) (2023-03-08) ### Features * deep multiline + fix obj serialization ([f4fe1f0](https://github.com/devthejo/direct-logger/commit/f4fe1f0eac434392ba80a2af62c574a0b4a45620)) ### [2.10.5](https://github.com/devthejo/direct-logger/compare/v2.10.4...v2.10.5) (2023-03-04) ### Bug Fixes * msg instanceof error ([a9acf2c](https://github.com/devthejo/direct-logger/commit/a9acf2c11ae215354c20df26814d51c54fe0c424)) ### [2.10.4](https://github.com/devthejo/direct-logger/compare/v2.10.3...v2.10.4) (2023-03-02) ### Bug Fixes * clean ([75fec72](https://github.com/devthejo/direct-logger/commit/75fec7260fdadef5ebe58dec29848ed230028140)) * clean ([e814a40](https://github.com/devthejo/direct-logger/commit/e814a40d937a91c3cc5c43715607bb820e87c531)) ### [2.10.3](https://github.com/devthejo/direct-logger/compare/v2.10.2...v2.10.3) (2023-03-02) ### Bug Fixes * done ([d6b67d4](https://github.com/devthejo/direct-logger/commit/d6b67d4d2b8409207018d077995e1191ca235f4c)) ### [2.10.2](https://github.com/devthejo/direct-logger/compare/v2.10.1...v2.10.2) (2023-03-02) ### Bug Fixes * error msg param ([22dc82f](https://github.com/devthejo/direct-logger/commit/22dc82f506bdaa00d5c36bbbc525619d7535e997)) ### [2.10.1](https://github.com/devthejo/direct-logger/compare/v2.10.0...v2.10.1) (2023-03-02) ### Bug Fixes * clean write-stream ([25af3b7](https://github.com/devthejo/direct-logger/commit/25af3b76f71b697f4f395baf2d2358864986d6d4)) ## [2.10.0](https://github.com/devthejo/direct-logger/compare/v2.9.0...v2.10.0) (2023-03-02) ### Features * skipEmptyMsg and trim ([e345bac](https://github.com/devthejo/direct-logger/commit/e345bac1b2bcdbdab40ab67e2001bbabc8d00627)) ### Bug Fixes * skipEmptyMsg ([f89be82](https://github.com/devthejo/direct-logger/commit/f89be823368a1f15167259551bd09280ac831856)) ## [2.9.0](https://github.com/devthejo/direct-logger/compare/v2.8.1...v2.9.0) (2023-03-02) ### Features * improve createStream + autocast buffer ([cff1bde](https://github.com/devthejo/direct-logger/commit/cff1bdefc4d3e7b1473b4db3c19244ac1996d6fa)) ### [2.8.1](https://github.com/devthejo/direct-logger/compare/v2.8.0...v2.8.1) (2023-03-02) ### Bug Fixes * stream factory ([93d24bd](https://github.com/devthejo/direct-logger/commit/93d24bd20cee7a99a3c8b0eacb80bb2a05b6318e)) ## [2.8.0](https://github.com/devthejo/direct-logger/compare/v2.7.3...v2.8.0) (2023-02-22) ### Features * getStream ([3ff39d1](https://github.com/devthejo/direct-logger/commit/3ff39d118631501d4a708c1412ce02d33b582ebf)) ### [2.7.3](https://github.com/devthejo/direct-logger/compare/v2.7.2...v2.7.3) (2023-02-14) ### Bug Fixes * object message ([83944fd](https://github.com/devthejo/direct-logger/commit/83944fdfd923d6c24e45f217964bcd157abd03a4)) ### [2.7.2](https://github.com/devthejo/direct-logger/compare/v2.7.1...v2.7.2) (2023-02-14) ### Bug Fixes * msg split not a function ([0d6b45e](https://github.com/devthejo/direct-logger/commit/0d6b45e7a47e16b36e99d60235bb0fad32c533fc)) ### [2.7.1](https://github.com/devthejo/direct-logger/compare/v2.7.0...v2.7.1) (2023-01-20) ### Bug Fixes * escape separator ([3baf3ec](https://github.com/devthejo/direct-logger/commit/3baf3ecfcead789fd5ba392773e6b167a4ee4953)) ## [2.7.0](https://github.com/devthejo/direct-logger/compare/v2.6.0...v2.7.0) (2023-01-20) ### Features * add methods + fix levels ([a573260](https://github.com/devthejo/direct-logger/commit/a5732602e6532a4d0532084d03e9a147ac9ce17c)) * escape separator ([a69bab8](https://github.com/devthejo/direct-logger/commit/a69bab8ff82cd098269653fb53792b988855b39f)) ## [2.6.0](https://github.com/devthejo/direct-logger/compare/v2.5.3...v2.6.0) (2023-01-20) ### Features * separator option default ideographic space ([a8ce7a3](https://github.com/devthejo/direct-logger/commit/a8ce7a3210f436d53ccf72c5086cd61d750a705a)) ### [2.5.3](https://github.com/devthejo/direct-logger/compare/v2.5.2...v2.5.3) (2023-01-19) ### Bug Fixes * undefined msg ([3c84ba1](https://github.com/devthejo/direct-logger/commit/3c84ba12b38fe9c9b269be7191de6987ec03d31d)) ### [2.5.2](https://github.com/devthejo/direct-logger/compare/v2.5.1...v2.5.2) (2023-01-19) ### Bug Fixes * undefined var bug ([f794c05](https://github.com/devthejo/direct-logger/commit/f794c05d625bfabeb1f3a0a77db00789866d7099)) ### [2.5.1](https://github.com/devthejo/direct-logger/compare/v2.5.0...v2.5.1) (2023-01-14) ### Bug Fixes * remove trim for cli formatter ([a1a2072](https://github.com/devthejo/direct-logger/commit/a1a207215b78f640606f1ed14fc51ebb7da3d315)) ## [2.2.0](https://github.com/devthejo/direct-logger/compare/v2.1.0...v2.2.0) (2022-12-11) ### Features * minLevel + maxLevel ([a33f846](https://github.com/devthejo/direct-logger/commit/a33f846619433dddd643c198a9f9f138de09dabd)) ### Bug Fixes * delivery script ([b9c84e8](https://github.com/devthejo/direct-logger/commit/b9c84e8344094f07c5f8ac94d63c4bdcbe5395d1)) * improve formatters and cli ([77706c8](https://github.com/devthejo/direct-logger/commit/77706c82f42574182ace0895b468b39fa2861bb0)) * lint ([01dee89](https://github.com/devthejo/direct-logger/commit/01dee8937409dd9fbb56418e459d979d75f41dd6)) ## [2.1.0](https://github.com/devthejo/direct-logger/compare/v2.0.0...v2.1.0) (2022-12-09) ### Features * interop pino: default + reversible arguments ([9342a2c](https://github.com/devthejo/direct-logger/commit/9342a2cba5208b2b4311bfc85e987e8bf2ba754a)) ### Bug Fixes * level order ([d752b03](https://github.com/devthejo/direct-logger/commit/d752b035b7adfce54249a489830436423864a2eb)) * reversible arguments ([6edc6dc](https://github.com/devthejo/direct-logger/commit/6edc6dc83b6f002a76e6f7660a8377f8f64e1382)) * tests ([e5bedbc](https://github.com/devthejo/direct-logger/commit/e5bedbc10b53256fbf7d7a69eeb2aef6dbee320c)) ## 2.0.0 (2022-12-09) ### ⚠ BREAKING CHANGES * Always pass an error to the formatter no matter the level * using let/const drops support for old environments ### Features * child logger ([84d27c4](https://github.com/devthejo/direct-logger/commit/84d27c4072c9576d5cde5ccab9217890e2ecb0dc)) * cli logger no supports colors:false ([5bd9ff5](https://github.com/devthejo/direct-logger/commit/5bd9ff5477331361a5a322d0c03ab6619789ccf8)) * **cli:** clean up multi-line error display ([ceee0ac](https://github.com/devthejo/direct-logger/commit/ceee0ac99be02aae4cc31cf6e134a7c7f5b50c70)) * dim and trim ([c269d3b](https://github.com/devthejo/direct-logger/commit/c269d3b635dbdf498c42482dedd81e5493b31162)) * export an instance and the constructor BREAKING CHANGE ([bc6646b](https://github.com/devthejo/direct-logger/commit/bc6646bcdcd1e6027d114e19c5b7b27e59950e15)) * lazy init error instance ([4e41ce7](https://github.com/devthejo/direct-logger/commit/4e41ce79d63148d4ad4090abf2d16cdc060c5a00)) * log error properties as extra data ([c7f64ca](https://github.com/devthejo/direct-logger/commit/c7f64caf1cf2dcef5cbd0ed1f59dfca92f55717c)) * make levels configurable ([a0d6034](https://github.com/devthejo/direct-logger/commit/a0d6034890593928b709405713fdffc37c88c940)) * secrets ([e05ac37](https://github.com/devthejo/direct-logger/commit/e05ac3701f6f6dbd5aabf3be0eed8860ae85d892)) ### Bug Fixes * **build:** ci fixes, added node versions, updated badges and docs, and added standard-version ([dd34b0f](https://github.com/devthejo/direct-logger/commit/dd34b0fefc96ca4c06d0b0dfa6c88af69ca3ec5d)) * clean yarn.lock ([8ce6f7b](https://github.com/devthejo/direct-logger/commit/8ce6f7b87f253e6b9f2bd6ecb2fcbf958f570a44)) * node@6 was never supposed to be supported in 3.x ([0df26b6](https://github.com/devthejo/direct-logger/commit/0df26b644b2208c176b12339b7278300dd67458d)) * only capture stack if passed an error ([3e3ca5a](https://github.com/devthejo/direct-logger/commit/3e3ca5a501f881332f7e71d99dca12fc278e75ff)) * rename to Logger ([d061b0e](https://github.com/devthejo/direct-logger/commit/d061b0ee403f4052d61bf7258df4b421efd9e2df)) * test in 8 & 12; var to let/const ([b835296](https://github.com/devthejo/direct-logger/commit/b835296a3ba0100bf63f18094cade3b3014eedb6)) * up workspace and stack ([c72d2a8](https://github.com/devthejo/direct-logger/commit/c72d2a8ab43acd7dfe803dd8fb1713bdbb2291a1)) * feat (formatter): Improved cli formatter ([4861850](https://github.com/devthejo/direct-logger/commit/4861850cc0f47f5363b115bb4115a15a41ba7802))