Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recorders file 没有产生file log #637

Open
wuchuguang opened this issue Dec 30, 2024 · 2 comments
Open

recorders file 没有产生file log #637

wuchuguang opened this issue Dec 30, 2024 · 2 comments

Comments

@wuchuguang
Copy link

this.#api.post('/config/recorders', {
"name": "access-log",
"file": {
"path": "./recording.gost",
},
}).then(res => {
logger.debug("recorder access-log success", res.data); // 打印了 msg: 'ok'
}).catch(err => {
logger.error("recorder access-log error", err.message);
})
window11系统下:
v3版本。启动完,发送recorders
没有产生recording.gost

@wuchuguang
Copy link
Author

config读取出来:

"recorders": [
{
"name": "access-log",
"file": {
"path": "C:/recording.gost"
}
}
],
"services": [
{
"name": "local-20024",
"addr": "127.0.0.1:20024",
"recorders": [
{
"name": "access-log",
"record": "recorder.service.router.dial.address.error"
}
],
....

@ginuerzh
Copy link
Member

文件会在首次写入时生成。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants