feat: 日志支持输出到openobserve

This commit is contained in:
zhaoyingbo 2025-03-18 13:13:41 +00:00
parent 7e00a5ee59
commit 8385b12886
2 changed files with 9 additions and 17 deletions

View File

@ -5,9 +5,9 @@
"name": "egg_server",
"dependencies": {
"@egg/hooks": "^1.2.0",
"@egg/lark-msg-tool": "^1.21.0",
"@egg/logger": "^1.6.0",
"@egg/net-tool": "^1.32.2",
"@egg/lark-msg-tool": "^1.21.2",
"@egg/logger": "^1.7.1",
"@egg/net-tool": "^1.32.4",
"@egg/path-tool": "^1.4.1",
"@langchain/core": "^0.3.42",
"@langchain/langgraph": "^0.2.56",
@ -101,11 +101,11 @@
"@egg/hooks": ["@egg/hooks@1.2.0", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Fhooks/-/1.2.0/hooks-1.2.0.tgz", { "dependencies": { "lodash": "*" } }, "sha512-pH9SViGCvdNHdXIpeqqgGODYPxq0HF+b0obKxcC11O1TT6QEpDRWgImZPRdFz0SwxG9VKjJFD+MuZpXmzar+kg=="],
"@egg/lark-msg-tool": ["@egg/lark-msg-tool@1.21.1", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Flark-msg-tool/-/1.21.1/lark-msg-tool-1.21.1.tgz", { "dependencies": { "@egg/logger": "^1.7.0", "winston": "*" } }, "sha512-T4d3p4MGFmxEp2QsGXwoiOpHHOC28DWWGEM6/K36U6uOAvBjkE3RGoEdC2qD/25UZq4UCJuWvf5gIrSI2UH2Eg=="],
"@egg/lark-msg-tool": ["@egg/lark-msg-tool@1.21.4", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Flark-msg-tool/-/1.21.4/lark-msg-tool-1.21.4.tgz", { "dependencies": { "@egg/logger": "^1.9.0", "winston": "*" } }, "sha512-ylKcAkuoJkTy99RYM4YRS6HfahtRDaW7XCavHPydvWDH6SYhvOurDMWZnrteR+Qef0oo2Id4Ekyu69laW+q9Yg=="],
"@egg/logger": ["@egg/logger@1.7.0", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Flogger/-/1.7.0/logger-1.7.0.tgz", { "dependencies": { "winston": "*", "winston-daily-rotate-file": "*" } }, "sha512-7JanJKWCrffj2BzKQDaB9VDzy466wTRraeVn2f13OLYfeT40hkY5rtK0ngibFdpJQgjzwkcZJQQIa9TFJAQapw=="],
"@egg/logger": ["@egg/logger@1.9.0", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Flogger/-/1.9.0/logger-1.9.0.tgz", { "dependencies": { "winston": "*" } }, "sha512-rV/p4JnbsyVYdHWzvJpv/W3AWV3Mz5z0KU6iNH5JQAp2As6Rs70Sr8YKSY9f8+qpbyvS9BHX6vuf1BOM9fyI6Q=="],
"@egg/net-tool": ["@egg/net-tool@1.32.3", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Fnet-tool/-/1.32.3/net-tool-1.32.3.tgz", { "dependencies": { "@egg/logger": "^1.7.0", "@gitbeaker/rest": "*", "winston": "*" } }, "sha512-DpzZttIa+/PeB+PvLPCPoMEwHXuVVo1Ntob6dfuz8Lq1frBQ6G7LuDT0xm1rFjDnJcOauUum0SYmkhNsFQauJw=="],
"@egg/net-tool": ["@egg/net-tool@1.32.6", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Fnet-tool/-/1.32.6/net-tool-1.32.6.tgz", { "dependencies": { "@egg/logger": "^1.9.0", "@gitbeaker/rest": "*", "winston": "*" } }, "sha512-FN0OVsBxsATunJNyKXnL7Z0k9sXlOX7nxE+cfz2jRYalO+bPgAbWyy/6kos0c6xwkmMouZgi+E/XaEi1ZW7amA=="],
"@egg/path-tool": ["@egg/path-tool@1.4.1", "https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/%40egg%2Fpath-tool/-/1.4.1/path-tool-1.4.1.tgz", {}, "sha512-PZE5kMRidZh3ahhmQJQG62wcApbCdmZihKQXYI5eAOhIbwm0hgB1sOUsais94sS9uEBQ+QpH0Om7sZ9w84rumw=="],
@ -401,8 +401,6 @@
"file-entry-cache": ["file-entry-cache@8.0.0", "", { "dependencies": { "flat-cache": "^4.0.0" } }, "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ=="],
"file-stream-rotator": ["file-stream-rotator@0.6.1", "", { "dependencies": { "moment": "^2.29.1" } }, "sha512-u+dBid4PvZw17PmDeRcNOtCP9CCK/9lRN2w+r1xIS7yOL9JFrIBKTvrYsxT4P0pGtThYTn++QS5ChHaUov3+zQ=="],
"fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],
"find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
@ -599,8 +597,6 @@
"minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
"moment": ["moment@2.30.1", "", {}, "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="],
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
"mustache": ["mustache@4.2.0", "", { "bin": { "mustache": "bin/mustache" } }, "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ=="],
@ -617,8 +613,6 @@
"nwsapi": ["nwsapi@2.2.18", "", {}, "sha512-p1TRH/edngVEHVbwqWnxUViEmq5znDvyB+Sik5cmuLpGOIfDf/39zLiq3swPF8Vakqn+gvNiOQAZu8djYlQILA=="],
"object-hash": ["object-hash@3.0.0", "", {}, "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw=="],
"object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
"one-time": ["one-time@1.0.0", "", { "dependencies": { "fn.name": "1.x.x" } }, "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g=="],
@ -803,8 +797,6 @@
"winston": ["winston@3.17.0", "", { "dependencies": { "@colors/colors": "^1.6.0", "@dabh/diagnostics": "^2.0.2", "async": "^3.2.3", "is-stream": "^2.0.0", "logform": "^2.7.0", "one-time": "^1.0.0", "readable-stream": "^3.4.0", "safe-stable-stringify": "^2.3.1", "stack-trace": "0.0.x", "triple-beam": "^1.3.0", "winston-transport": "^4.9.0" } }, "sha512-DLiFIXYC5fMPxaRg832S6F5mJYvePtmO5G9v9IgUFPhXm9/GkXarH/TUrBAVzhTCzAj9anE/+GjrgXp/54nOgw=="],
"winston-daily-rotate-file": ["winston-daily-rotate-file@5.0.0", "", { "dependencies": { "file-stream-rotator": "^0.6.1", "object-hash": "^3.0.0", "triple-beam": "^1.4.1", "winston-transport": "^4.7.0" }, "peerDependencies": { "winston": "^3" } }, "sha512-JDjiXXkM5qvwY06733vf09I2wnMXpZEhxEVOSPenZMii+g7pcDcTBt2MRugnoi8BwVSuCT2jfRXBUy+n1Zz/Yw=="],
"winston-transport": ["winston-transport@4.9.0", "", { "dependencies": { "logform": "^2.7.0", "readable-stream": "^3.6.2", "triple-beam": "^1.3.0" } }, "sha512-8drMJ4rkgaPo1Me4zD/3WLfI/zPdA9o2IipKODunnGDcuqbHwjsbB79ylv04LCGGzU0xQ6vTznOMpQGaLhhm6A=="],
"word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="],

View File

@ -38,9 +38,9 @@
},
"dependencies": {
"@egg/hooks": "^1.2.0",
"@egg/lark-msg-tool": "^1.21.1",
"@egg/logger": "^1.7.0",
"@egg/net-tool": "^1.32.3",
"@egg/lark-msg-tool": "^1.21.4",
"@egg/logger": "^1.9.0",
"@egg/net-tool": "^1.32.6",
"@egg/path-tool": "^1.4.1",
"@langchain/core": "^0.3.42",
"@langchain/langgraph": "^0.2.56",