andeya / faygo

Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.

Home Page:https://github.com/henrylee2cn/faydoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nohup 运行时faygo日志进入了nohup.out

jianjyan opened this issue · comments

如题,在用nohup的方式运行faygo的时候,faygo日志写入了nohup.out
这显然不是我们期待的结果, 请问要怎么样保持faygo日志继续写入原来的文件里?
谢谢

有两种方式:
一种修改faygo配置文件

[log]
console_enable = false
file_enable    = true

第二种,使用nohup重定向:

nohup faygoServer  >config/faygoServer.log 2>&1 &