Gogs如何关闭命令行日志输出

Clive
  • 44

安装了Gogs服务器来管理git上的代码,后台启动后,请求访问Gogs服务器,会输出日志到命令行窗口前端,怎么关闭,只要输出到日志文件就行了?

//后台启动gogs
[root@10-23-67-69 conf]# /home/git/gogs/gogs web &
[2] 18849
[root@10-23-67-69 conf]# 2019/05/02 00:01:01 [TRACE] Custom path: /home/git/gogs/custom
2019-05-01 23:57:10 [TRACE] Log path: /home/git/gogs/log
2019-05-01 23:57:10 [TRACE] Log Mode: File (Trace)
2019-05-01 23:57:10 [ INFO] Wooduan 0.11.34.1122

//我不需要像下面的前台日志输出
[root@10-23-67-69 conf]# [Macaron] 2019-05-01 23:57:11: Started GET /admin/config for 60.186.204.51
[Macaron] 2019-05-01 23:57:12: Completed GET /admin/config 200 OK in 1.233874632s
[Macaron] 2019-05-01 23:57:13: Started GET /img/favicon.png for 60.186.204.51
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2019-05-01 23:57:13: Completed GET /img/favicon.png 200 OK in 21.497049ms [Macaron] 2019-05-01 23:57:19: Started GET /admin/config for 60.186.204.51
[Macaron] 2019-05-01 23:57:19: Completed GET /admin/config 200 OK in 6.955544ms
[Macaron] 2019-05-01 23:57:20: Started GET /img/favicon.png for 60.186.204.51
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2019-05-01 23:57:20: Completed GET /img/favicon.png 200 OK in 203.279µs
回复
阅读 3.4k
2 个回答
michael_cai
  • 10.6k

看官方配置文件,没找到关闭的选项,但是如果新开一个命令行窗口,登录同一个用户,新开启的窗口不会有命令行日志输出,应该是在执行启动gogs命令的会话才会有命令行日志输出,不会影响其他打开另一个会话的用户。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏