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

console文件乱码 以及json格式与node不一致,预期日志文件不正确 #548

Open
lhkzh opened this issue Jan 7, 2020 · 0 comments
Labels

Comments

@lhkzh
Copy link
Contributor

lhkzh commented Jan 7, 2020

console.add({ type: "file",levels: [console.INFO, console.WARN, console.ERROR],path: "app_%s.log",split: "day" });
在windows下日志文件多了些乱码
json: {
"a": �[0;32m"a"�[0m
}
%s这个文件名生成也不能按照标准日期生成 app_20200107080000.log,希望支持日期正则自己生产

json不一致
console.log("json: %j",{a:"a"})
node结果 json: {"a":"a"}
fibjs结果 json: {
"a": "a"
}

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

No branches or pull requests

2 participants